Endpoint
PUT
/backend/leads/{id}/statusPath Parameters
string
required
Lead ID
Body Parameters
string
required
New status ID
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Update a lead’s status
/backend/leads/{id}/statuscurl -X PUT "https://api.leavo.ai/backend/leads/lead-uuid/status" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"status_id": "new-status-uuid"
}'
const response = await fetch('https://api.leavo.ai/backend/leads/lead-uuid/status', {
method: 'PUT',
headers: {
'Authorization': 'Bearer your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
status_id: 'new-status-uuid'
})
});
{
"success": true,
"data": {
"id": "lead-uuid",
"name": "John Smith",
"status": {
"id": "new-status-uuid",
"name": "Qualified",
"color": "#3B82F6"
},
"updated_at": "2024-01-15T14:00:00Z"
}
}