Update Lead
PATCH
/public/v1/leads/{lead_id}
const url = 'https://api.nuntius.chat/public/v1/leads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"stageId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","quality":"example","assignedOperatorId":"example","notes":"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://api.nuntius.chat/public/v1/leads/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "stageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "quality": "example", "assignedOperatorId": "example", "notes": "example" }'Partially update stageId/quality/assignedOperatorId/notes – the curated field
set SPEC_API_PUBLICA.md §2.1 names for this endpoint (see PublicLeadUpdateRequest’s own
docstring for why it is narrower than the internal PATCH).
Foreign/unknown leadId or stageId/assignedOperatorId referencing another tenant
-> 404, zero persistence (resolved BEFORE any field is mutated).
Permiso necesario: tenant:leads.manage
