Rename or recolor a tag
PATCH
/v1/tags/{tagId}
const url = 'https://api.spirby.com/v1/tags/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"color":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.spirby.com/v1/tags/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "name": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” tagId
required
string
Request Body
Section titled “Request Body ” Media type application/json
object
color
string | null
name
string
Example generated
{ "color": "example", "name": "example"}Responses
Section titled “ Responses ”Successful response
Media type application/json
object
data
Example generated
{ "data": "example"}Missing or invalid API key
Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{ "error": { "code": "example", "details": { "additionalProperty": "example" }, "message": "example" }}Scope insufficient (ERR_SCOPE_INSUFFICIENT) or org in readonly billing state (ERR_FORBIDDEN)
Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{ "error": { "code": "example", "details": { "additionalProperty": "example" }, "message": "example" }}Validation failed
Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{ "error": { "code": "example", "details": { "additionalProperty": "example" }, "message": "example" }}Rate limit exceeded
Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{ "error": { "code": "example", "details": { "additionalProperty": "example" }, "message": "example" }}Internal error
Media type application/json
object
error
required
object
code
required
string
details
object
key
additional properties
message
required
string
Example generated
{ "error": { "code": "example", "details": { "additionalProperty": "example" }, "message": "example" }}