Skip to content

Update lead

PATCH
/api/v1/leads/{lead_id}
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.

lead_id
required
Lead Id
string
Media typeapplication/json
LeadUpdateRequest
object
name
Any of:
string
>= 1 characters <= 200 characters
email
Any of:
string format: email
phone
Any of:
string
<= 30 characters
company
Any of:
string
<= 200 characters
website_url
Any of:
string
source
Any of:
string
source_detail
Any of:
string
<= 200 characters
status
Any of:
string
channel
Any of:
string
notes
Any of:
string
preferred_date
Any of:
string format: date
preferred_timing_flexible
Any of:
boolean
service_address
Any of:
string
next_action_at
Any of:
string format: date-time
requested_service_id
Any of:
string
quoted_price
Any of:
number
lost_reason
Any of:
string

Example generated

{
"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"
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}