Create Tag

Resource

https://api.infobip.com/ccaas/tags

Body Params

Property name Type Description
name string Tag name

Request Example

					POST /ccaas/1/tags HTTP/1.1
Host: {base_url}
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Accept: application/json

{
    "name": "This is demo TAG1"
}
					
				

Response

					{
    "id": "37B93F4D2BA3C58B58526EAEAA1AB35C",
    "name": "This is demo TAG1"
}
					
				
					{
    "statusCode": "ERROR",
    "message": "Required request body is missing or not valid"
}
					
				
					{
    "statusCode": "ERROR",
    "message": "tag already exists"
}
					
				

Use this method to create a new tag.

Parameters

Property name Type Description
name string Required - Tag name content can be any text up to 4000 characters.

Duplicate tag

If you try to create a tag with a name that already exists in the system, you will get the following response: “statusCode”: “ERROR”, “message”: “tag already exists”