PUT
Update a lead
Scope:
crm:deals.writehttps://api.holded.com/api/v2/leads/{leadId}Updates an existing lead.
Parameters
Path parameters
leadId
stringrequiredLead ID
Request body
object
funnel_idstring
Funnel ID
contact_idstring
Contact ID
namestring
Lead name
stage_idstring | null
Stage ID
valuenumber | null
Deal value
potentialnumber | null
Deal potential
due_datestring<date> | null
Due date (YYYY-MM-DD)
assigned_tostring | null
Assigned user ID
custom_fields[]object[] | null
Custom fields
statusstring
Lead status
Enum:
openwonlostRequest
python
import requests
url = "https://api.holded.com/api/v2/leads/{leadId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"funnel_id": "string",
"contact_id": "string",
"name": "string",
"stage_id": "string",
"value": 0,
"potential": 0,
"due_date": "2024-01-15",
"assigned_to": "string",
"custom_fields": [
{}
],
"status": "open"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "string"
}Success responses
200Lead updatedapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Lead not foundapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json