Tag

Tag of the ticket.

Tag
- Tag Manage
GET ticketing/tags
GET ticketing/tags/{id}
POST ticketing/tags
PUT ticketing/tags/{id}
DELETE ticketing/tags/{id}
Model
Tag JSON Format

Tag is represented as simple flat JSON objects with the following keys:

Name Type Description
id guid Id of the tag.
name string Name of the tag.
Endpoint
Get the list of Tag

GET ticketing/tags

Parameters:
No Parameters
Response:

An array of   Tag

Example

Sample Request:

curl https://api15.comm100.io/v4/ticketing/tags \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 200 OK

[{"id":"bdf96bad-890f-4af5-8f4e-42d2cc29e61b","name":"my tag"}]
Get a single Tag

GET ticketing/tags/{id}

Parameters:
No Parameters
Response:

Tag

Example

Sample Request:

curl https://api15.comm100.io/v4/ticketing/tags/bdf96bad-890f-4af5-8f4e-42d2cc29e61b \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 200 OK

{"id":"bdf96bad-890f-4af5-8f4e-42d2cc29e61b","name":"my tag"}
Create a new Tag

POST ticketing/tags

Parameters:
Name Type In Required Description
name string body yes Name of the tag.
Response:

Tag

Example

Sample Request:

curl https://api15.comm100.io/v4/ticketing/tags \
-X 'POST' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"name":"my tag"}'

Response:

 HTTP/1.1 201 Created

{"id":"bdf96bad-890f-4af5-8f4e-42d2cc29e61b","name":"my tag"}
Update the Tag

PUT ticketing/tags/{id}

Parameters:
Name Type In Required Description
name string body yes Name of the tag.
Response:

Tag

Example

Sample Request:

curl https://api15.comm100.io/v4/ticketing/tags/bdf96bad-890f-4af5-8f4e-42d2cc29e61b \
-X 'PUT' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"name":"my tag"}'

Response:

 HTTP/1.1 200 OK

{"id":"bdf96bad-890f-4af5-8f4e-42d2cc29e61b","name":"my tag"}
Remove the Tag

DELETE ticketing/tags/{id}

Parameters:
No Parameters
Response:

No Content

Example

Sample Request:

curl https://api15.comm100.io/v4/ticketing/tags/bdf96bad-890f-4af5-8f4e-42d2cc29e61b \
-X 'DELETE' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 204 No Content