> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.microsoft.mail.UpdateCategory

- Component: `appmixer.microsoft.mail.UpdateCategory`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.microsoft.mail 2.3.0](https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.microsoft.mail/2.3.0/component/appmixer.microsoft.mail.UpdateCategory>

Updates the categories assigned to an email in your mailbox.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Email ID (`emailId`) | text | Email identifier for the message to be marked as unread. |
| Categories (`categories`) | multiselect | Categories to be updated(comma separated eg: 'Blue category,Red category'). |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| `result` | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.microsoft.mail.UpdateCategory",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "Updates the categories assigned to an email in your mailbox.",
  "auth": {
    "service": "appmixer:microsoft",
    "scope": [
      "Mail.ReadWrite"
    ]
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "emailId": {
            "type": "string"
          },
          "categories": {
            "type": [
              "array",
              "string"
            ]
          }
        },
        "required": [
          "emailId"
        ]
      },
      "inspector": {
        "inputs": {
          "emailId": {
            "type": "text",
            "index": 1,
            "label": "Email ID",
            "tooltip": "Email identifier for the message to be marked as unread."
          },
          "categories": {
            "type": "multiselect",
            "index": 2,
            "label": "Categories",
            "tooltip": "Categories to be updated(comma separated eg: 'Blue category,Red category').",
            "source": {
              "url": "/component/appmixer/microsoft/mail/ListCategories?outPort=out",
              "data": {
                "properties": {
                  "sendWholeArray": true
                },
                "transform": "./ListCategories#categoriesToSelectArray"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "result",
          "value": "result",
          "schema": {
            "type": "object",
            "example": {
              "id": "AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OABGAAAAAAAiQ8W967B7TKBjgx9rVEURBwAiIsqMbYjsT5e-T7KzowPTAAAAAAEMAAAiIsqMbYjsT5e-T7KzowPTAAAYbvZDAAA=",
              "subject": "Quarterly report",
              "categories": [
                "Red category"
              ],
              "lastModifiedDateTime": "2026-09-10T08:35:00Z"
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
