cURL
curl --request POST \ --url https://api.retrac.co/tags \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "tag": "<string>", "color": "red" } '
{ "id": "<string>", "name": "<string>", "color": "red" }
Create a new tag for the authenticated workspace.
Default authentication mechanism
The ID of the workspace.
"ws_cluuwcv0r..."
The slug of the project. This field is deprecated โ use workspaceId instead.
workspaceId
The name of the tag to create.
1
The color of the tag. If not provided, a random color will be used from the list: red, yellow, green, blue, purple, pink, brown.
red
yellow
green
blue
purple
pink
brown
The created tag
The unique ID of the tag.
The name of the tag.
The color of the tag.
Was this page helpful?