Create or update a push notification watch on the mailbox
POST {{baseUrl}}/emails/mailboxes/:email/watch
Create or update a push notification watch on the given mailbox.
Scopes: mail:write
Rate Limit Label: LIGHT
Not supported in Gov cluster
Request Body
{"topicName"=>"<string>", "labelIds"=>["<string>", "<string>"], "labelFilterAction"=>"exclude"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"historyId":"\u003cstring\u003e","expiration":"\u003cstring\u003e"}