trash_emails
Move messages to the trash, where they can be restored until the provider empties it.
Move messages to the trash, where they can be restored until the provider empties it.
Permissions
Required capabilities: mail.trash.
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 |
{
"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"
}
},
"required": [
"messageIds"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Last updated