Create a new label in mailbox

POST {{baseUrl}}/emails/mailboxes/:email/labels

Creates a new label.

Scopes: mail:write

Rate Limit Label: LIGHT

Not supported in Gov cluster

Request Body

{"name"=>"<string>", "parentId"=>"<string>", "messageListVisibilitystring"=>"show", "labelListVisibility"=>"labelHide", "color"=>{"textColor"=>"<string>", "backgroundColor"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;parentId&quot;:&quot;\u003cstring\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;labelLevel&quot;:&quot;\u003cinteger\u003e&quot;,&quot;messageListVisibilitystring&quot;:&quot;show&quot;,&quot;labelListVisibility&quot;:&quot;labelShowIfUnread&quot;,&quot;color&quot;:{&quot;textColor&quot;:&quot;\u003cstring\u003e&quot;,&quot;backgroundColor&quot;:&quot;\u003cstring\u003e&quot;}}