POST api/2.0/mail/tags
Creates a new tag with the parameters specified in the request.
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
|
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"
]
}
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>