Create a tag

Create a tag.

Note that tags are referred to as groups in the Essential user interface.

Resource URL:

POST https://api.essential.to/v2/account/tags

Resource information:

Response formatJSON
Requires authentication?Yes

Parameters:

channel_sid
required

Channel with which the tag should be associated.

name
required

Name of the tag. Note: Tag names must be must be at least 3 characters in length and must be unique to the channel. A case-insensitive comparison is used to determine uniqueness.

Sample code:

curl -X POST \
     -u '[SID]:[TOKEN]' \
     -H 'Content-Type: application/json' \
     'https://api.essential.to/v2/account/tags' \
     -d '{"channel_sid":"sRhvpNDGZwyDeH-YRZIr9A", "name":"Bulldog buddies"}'

# Sample response
{
  "name": "Bulldog buddies",
  "created_at": "2017-02-15T23:20:00.123Z",
  "updated_at": "2017-02-15T23:20:00.123Z",
  "canonical_name": "bulldog_buddies",
  "deleted_at": null,
  "sid": "oN0vsJAIX3UHRhmoDd8UNA",
  "account_sid": "RsbrYCSo2m0sShMLOlZqtw",
  "channel_sid": "sRhvpNDGZwyDeH-YRZIr9A",
  "num_subscribers_total": 0,
  "num_subscribers_active": 0
}
Python coming soon.
Node coming soon.