Skip to main content
PUT

Update a lead

Scope:crm:deals.write
https://api.holded.com/api/v2/leads/{leadId}

Updates an existing lead.

Parameters

Path parameters

leadIdstringrequired

Lead 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:openwonlost

Request

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/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Lead not foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json