Tags
A tag is a colored label on tickets, such as bug. Workspace tags work on every ticket and belong to owners and admins; team tags work only on their team's tickets, and the team's members manage them too.
The Tag object
A colored label on tickets. Workspace tags work on every ticket; team tags only on their team's tickets.
Attributes
idstringRequiredUnique ID of the tag.
namestringRequiredThe tag's name, such as bug.
colorstringRequiredThe tag's color.
grayredorangeambergreentealcobaltirispinkteamnullable objectRequiredThe team a team tag belongs to; null for a workspace tag.
{ "id": "Tg3FtR7nWq2K", "name": "feature", "color": "cobalt", "team": null}List tags
GET/Returns workspace tags and the team tags of every team the caller sees or, with team, workspace tags and that team's tags.
Path parameters
slugstringRequiredThe workspace's slug or ID, such as acme.
Query parameters
teamstringA team's key, such as WEB, for the tags that team's tickets can use.
Returns
Returns an object with these fields. Status 200.
The tags, sorted by name.
Errors
- 400
InvalidInputThe request is malformed, or a value is not allowed.- 401
UnauthorizedThe request has no valid API key.- 403
ForbiddenThe key's user or role may not do this.- 404
NotFoundThe workspace or object does not exist, or the caller cannot see it.- 409
ConflictThe change conflicts with current data, such as a slug that is already in use.- 500
InternalClanker Ship failed to handle the request. Retry, or report the response's x-request-id.
curl https://api.qa.clankership.net/v1/workspaces/acme/tags \ -H "Authorization: Bearer $CLANKER_API_KEY"{ "tags": [ { "id": "Tg3FtR7nWq2K", "name": "feature", "color": "cobalt", "team": null } ]}Create a tag
POST/Owners and admins create workspace tags, and a team's members also create its team tags; viewers cannot. A workspace tag's name must differ from every tag's, and a team tag's from the workspace tags and the team's own.
Path parameters
slugstringRequiredThe workspace's slug or ID, such as acme.
Body parameters
namestringRequiredThe tag's name, up to 40 characters, such as bug.
colorstringRequiredThe tag's color.
grayredorangeambergreentealcobaltirispinkteamnullable stringThe key of the team a team tag belongs to, such as WEB. Leave it out for a workspace tag.
Returns
Returns the Tag object. Status 201.
Errors
- 400
InvalidInputThe request is malformed, or a value is not allowed.- 401
UnauthorizedThe request has no valid API key.- 403
ForbiddenThe key's user or role may not do this.- 404
NotFoundThe workspace or object does not exist, or the caller cannot see it.- 409
ConflictThe change conflicts with current data, such as a slug that is already in use.- 500
InternalClanker Ship failed to handle the request. Retry, or report the response's x-request-id.
curl -X POST https://api.qa.clankership.net/v1/workspaces/acme/tags \ -H "Authorization: Bearer $CLANKER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "search", "color": "teal", "team": "WEB" }'{ "id": "Tg3FtR7nWq2K", "name": "feature", "color": "cobalt", "team": null}Update a tag
PATCH/Renames or recolors a tag; only the fields sent change. Saved view filters follow a new name. The people who can create the tag can change it.
Path parameters
slugstringRequiredThe workspace's slug or ID, such as acme.
tagstringRequiredThe tag's ID.
Body parameters
namestringThe tag's name, up to 40 characters.
colorstringThe tag's color.
grayredorangeambergreentealcobaltirispinkReturns
Returns the Tag object. Status 200.
Errors
- 400
InvalidInputThe request is malformed, or a value is not allowed.- 401
UnauthorizedThe request has no valid API key.- 403
ForbiddenThe key's user or role may not do this.- 404
NotFoundThe workspace or object does not exist, or the caller cannot see it.- 409
ConflictThe change conflicts with current data, such as a slug that is already in use.- 500
InternalClanker Ship failed to handle the request. Retry, or report the response's x-request-id.
curl -X PATCH https://api.qa.clankership.net/v1/workspaces/acme/tags/{tag} \ -H "Authorization: Bearer $CLANKER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "color": "iris" }'{ "id": "Tg3FtR7nWq2K", "name": "feature", "color": "cobalt", "team": null}Delete a tag
DELETE/Takes the tag off every ticket and out of saved view filters. The people who can create the tag can delete it.
Path parameters
slugstringRequiredThe workspace's slug or ID, such as acme.
tagstringRequiredThe tag's ID.
Returns
Returns no content. Status 204.
Errors
- 400
InvalidInputThe request is malformed, or a value is not allowed.- 401
UnauthorizedThe request has no valid API key.- 403
ForbiddenThe key's user or role may not do this.- 404
NotFoundThe workspace or object does not exist, or the caller cannot see it.- 409
ConflictThe change conflicts with current data, such as a slug that is already in use.- 500
InternalClanker Ship failed to handle the request. Retry, or report the response's x-request-id.
curl -X DELETE https://api.qa.clankership.net/v1/workspaces/acme/tags/{tag} \ -H "Authorization: Bearer $CLANKER_API_KEY"