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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;historyId&quot;:&quot;\u003cstring\u003e&quot;,&quot;expiration&quot;:&quot;\u003cstring\u003e&quot;}