Skip to main content
PUT
/
api
/
v1
/
tags
/
{id}
Atualizar tag
curl --request PUT \
  --url https://api.g1.datacrazy.io/api/v1/tags/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "marketing orgânico",
  "color": "#A78BFA",
  "description": "Leads que vieram de campanhas internas",
  "useRandomColor": true
}
'
{
  "id": "cb3e8d24-ccad-43d1-acd5-08580d9bc674",
  "name": "marketing orgânico",
  "color": "#A78BFA",
  "description": "Leads que vieram de campanhas internas",
  "createdAt": "2025-03-25T14:12:47.738Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string

Nome da tag

Example:

"marketing orgânico"

color
string

Cor da tag em hexadecimal

Example:

"#A78BFA"

description
string

Descrição atribuída a tag

Example:

"Leads que vieram de campanhas internas"

useRandomColor
boolean

Opção de atribuír uma cor aleatória na tag, por padrão é false

Example:

true

Response

200 - application/json
id
string

ID da tag

Example:

"cb3e8d24-ccad-43d1-acd5-08580d9bc674"

name
string

Nome da tag

Example:

"marketing orgânico"

color
string

Cor da tag em hexadecimal

Example:

"#A78BFA"

description
string

Descrição atribuída a tag

Example:

"Leads que vieram de campanhas internas"

createdAt
string<date-time>

Data de cricão da tag

Example:

"2025-03-25T14:12:47.738Z"