POST api/2.0/mail/tags This function requires authentication

Description

Creates a new tag with the parameters specified in the request.

Parameters
Name Description Type Example
name
sent in body
Tag name string some text
style
sent in body
Style identifier: a postfix which represents the CSS style (tag color) string some text
addresses
sent in body
List of addresses associated with a tag Collection of strings
collection
some text
Example
POST api/2.0/mail/tags
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "name": "some text",
  "style": "some text",
  "addresses": [
    "some text"
  ]
}
Returns

Mail tag

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": 1234,
    "name": "name",
    "style": "style",
    "addresses": [
      "addresses"
    ],
    "lettersCount": 1234
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>1234</id>
    <name>name</name>
    <style>style</style>
    <addresses>addresses</addresses>
    <lettersCount>1234</lettersCount>
  </response>
</result>