https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags/{tag_id}
Update workspace tags.
- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::PUT, "https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/tags/{tag_id}".to_string()).json(&serde_json::json!(\{"name":"string"\})) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}
Parameters
Path
name | type | required | description |
---|---|---|---|
workspace_id | integer | true | Numeric ID of the workspace |
tag_id | integer | true | Numeric ID of the tag |
Body
Name | Type | Description |
---|---|---|
name | string | Tag name |
Response
200
Name | Type | Description |
---|---|---|
items | Array of object | - |
items
Name | Type | Description |
---|---|---|
at | string | When was created/last modified |
creator_id | integer | CreatorID the user who created the tag |
deleted_at | string | When was deleted |
id | integer | Tag ID |
integration_ext_id | string | The external ID of the linked entity in the external system (e.g. JIRA/SalesForce) |
integration_ext_type | string | The external type of the linked entity in the external system (e.g. JIRA/SalesForce) |
integration_provider | string | The provider (e.g. JIRA/SalesForce) that has an entity linked to this Toggl Track entity |
name | string | Tag name |
permissions | string | - |
workspace_id | integer | Workspace ID |
400
Possible errors:
- Invalid JSON input
- Invalid tag ID
- tag name can’t be blank
- a tag with the name ‘{tag_name}’ already exists
403
Only organization or workspace administrators may manage tags in this workspace.
404
Tag was not found
500
Internal Server Error