Skip to main content

Tags

GET Tags

https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags

List Workspace tags.

curl  https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags \
-H "Content-Type: application/json" \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueNumeric ID of the workspace

Response

[
{
"at": {
"type": "string"
},
"deleted_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"workspace_id": {
"type": "integer"
}
}
]

POST Create tag

https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags

Create workspace tags.

curl -X POST https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags \
-H "Content-Type: application/json" \
-d '{"name":"string","workspace_id":"integer"}' \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueNumeric ID of the workspace

Body

nametypedescription
namestring-
workspace_idinteger-

Response

[
{
"at": {
"type": "string"
},
"deleted_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"workspace_id": {
"type": "integer"
}
}
]

PUT Update tag

https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags/{tag_id}

Update workspace tags.

curl -X PUT https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags/{tag_id} \
-H "Content-Type: application/json" \
-d '{"name":"string","workspace_id":"integer"}' \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueNumeric ID of the workspace
tag_idintegertrueNumeric ID of the tag

Body

nametypedescription
namestring-
workspace_idinteger-

Response

[
{
"at": {
"type": "string"
},
"deleted_at": {
"type": "string",
"format": "date-time"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"workspace_id": {
"type": "integer"
}
}
]

DELETE Delete tag

https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags/{tag_id}

Delete workspace tags.

curl -X DELETE https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags/{tag_id} \
-H "Content-Type: application/json" \
-u <email>:<password>

Parameters

Path

nametyperequireddescription
workspace_idintegertrueNumeric ID of the workspace
tag_idintegertrueNumeric ID of the tag

Response

Successful operation.
© 2022 Toggl. All rights reserved.