curl -X POST "https://api.leavo.ai/backend/status" \
-H "Authorization: Bearer sua_chave_aqui" \
-H "Content-Type: application/json" \
-d '{
"name": "Hot Lead",
"description": "Lead com alta probabilidade de conversão",
"color": "#dc3545",
"default": false
}'
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"tenant_id": "660e8400-e29b-41d4-a716-446655440000",
"name": "Hot Lead",
"description": "Lead com alta probabilidade de conversão",
"color": "#dc3545",
"default": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
Cria um novo status
curl -X POST "https://api.leavo.ai/backend/status" \
-H "Authorization: Bearer sua_chave_aqui" \
-H "Content-Type: application/json" \
-d '{
"name": "Hot Lead",
"description": "Lead com alta probabilidade de conversão",
"color": "#dc3545",
"default": false
}'
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"tenant_id": "660e8400-e29b-41d4-a716-446655440000",
"name": "Hot Lead",
"description": "Lead com alta probabilidade de conversão",
"color": "#dc3545",
"default": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
default. Se você criar um novo status como default, o anterior será desmarcado automaticamente.curl -X POST "https://api.leavo.ai/backend/status" \
-H "Authorization: Bearer sua_chave_aqui" \
-H "Content-Type: application/json" \
-d '{
"name": "Hot Lead",
"description": "Lead com alta probabilidade de conversão",
"color": "#dc3545",
"default": false
}'
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"tenant_id": "660e8400-e29b-41d4-a716-446655440000",
"name": "Hot Lead",
"description": "Lead com alta probabilidade de conversão",
"color": "#dc3545",
"default": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}