Update Tag
PUT
/v1/tags/{id}
const url = 'https://example.com/api/v1/tags/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"color":"example","description":"example","icon":"example","id":"example","name":"example","parentId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/tags/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parentId": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Tag ID
Request Body required
Section titled “Request Body required ”Tag Data
Media type application/json
object
color
string
description
string
icon
string
id
string
name
required
string
parentId
string
Example generated
{ "color": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parentId": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
children
Array<object>
object
color
string
createdAt
string
description
string
icon
string
id
string
name
string
parentId
string
updatedAt
string
color
string
createdAt
string
description
string
icon
string
id
string
name
string
parent
object
color
string
createdAt
string
description
string
icon
string
id
string
name
string
parentId
string
updatedAt
string
parentId
string
updatedAt
string
Example generated
{ "children": [ { "color": "example", "createdAt": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parentId": "example", "updatedAt": "example" } ], "color": "example", "createdAt": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parent": { "color": "example", "createdAt": "example", "description": "example", "icon": "example", "id": "example", "name": "example", "parentId": "example", "updatedAt": "example" }, "parentId": "example", "updatedAt": "example"}