curl -X PUT "https://api.leavo.ai/backend/tags/880e8400-e29b-41d4-a716-446655440002" \
-H "Authorization: Bearer sua_chave_aqui" \
-H "Content-Type: application/json" \
-d '{
"name": "Super Premium",
"color": "#e83e8c"
}'
{
"id": "880e8400-e29b-41d4-a716-446655440002",
"tenant_id": "660e8400-e29b-41d4-a716-446655440000",
"name": "Super Premium",
"description": "Cliente Premium",
"color": "#e83e8c",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
Atualiza uma tag existente
curl -X PUT "https://api.leavo.ai/backend/tags/880e8400-e29b-41d4-a716-446655440002" \
-H "Authorization: Bearer sua_chave_aqui" \
-H "Content-Type: application/json" \
-d '{
"name": "Super Premium",
"color": "#e83e8c"
}'
{
"id": "880e8400-e29b-41d4-a716-446655440002",
"tenant_id": "660e8400-e29b-41d4-a716-446655440000",
"name": "Super Premium",
"description": "Cliente Premium",
"color": "#e83e8c",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
curl -X PUT "https://api.leavo.ai/backend/tags/880e8400-e29b-41d4-a716-446655440002" \
-H "Authorization: Bearer sua_chave_aqui" \
-H "Content-Type: application/json" \
-d '{
"name": "Super Premium",
"color": "#e83e8c"
}'
{
"id": "880e8400-e29b-41d4-a716-446655440002",
"tenant_id": "660e8400-e29b-41d4-a716-446655440000",
"name": "Super Premium",
"description": "Cliente Premium",
"color": "#e83e8c",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}