remove_labels
Remove labels, or Outlook categories, from messages.
Remove labels, or Outlook categories, from messages.
Permissions
Required capabilities: mail.organize.
Inputs
| Name | Required | Type | Details |
|---|---|---|---|
accountId | No | string or null | Account to operate on. Optional when exactly one account is connected. Minimum length: 1. Maximum length: 512. |
messageIds | Yes | array of string | Messages to change, up to 100 IDs |
labels | Yes | array of string | Gmail labels or Outlook categories |
{
"type": "object",
"properties": {
"accountId": {
"description": "Account to operate on. Optional when exactly one account is connected.",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 512
},
{
"type": "null"
}
]
},
"messageIds": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"description": "Messages to change, up to 100 IDs"
},
"labels": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"description": "Gmail labels or Outlook categories"
}
},
"required": [
"messageIds",
"labels"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Last updated