Update lead
PATCH
/api/v1/leads/{lead_id}
const url = 'https://app.ayna.com/api/v1/leads/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","email":"[email protected]","phone":"example","company":"example","website_url":"example","source":"example","source_detail":"example","status":"example","channel":"example","notes":"example","preferred_date":"2026-04-15","preferred_timing_flexible":true,"service_address":"example","next_action_at":"2026-04-15T12:00:00Z","requested_service_id":"example","quoted_price":1,"lost_reason":"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://app.ayna.com/api/v1/leads/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "email": "[email protected]", "phone": "example", "company": "example", "website_url": "example", "source": "example", "source_detail": "example", "status": "example", "channel": "example", "notes": "example", "preferred_date": "2026-04-15", "preferred_timing_flexible": true, "service_address": "example", "next_action_at": "2026-04-15T12:00:00Z", "requested_service_id": "example", "quoted_price": 1, "lost_reason": "example" }'Update a lead. Status changes must follow the pipeline transitions.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”lead_id
required
Lead Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
LeadUpdateRequest
object
Example generated
{ "name": "example", "phone": "example", "company": "example", "website_url": "example", "source": "example", "source_detail": "example", "status": "example", "channel": "example", "notes": "example", "preferred_date": "2026-04-15", "preferred_timing_flexible": true, "service_address": "example", "next_action_at": "2026-04-15T12:00:00Z", "requested_service_id": "example", "quoted_price": 1, "lost_reason": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}