Update one or more fields of an existing lead. Only the fields you provide will be changed; all other fields remain unchanged.
Path Parameters
The unique identifier of the lead to update
Body Parameters
Move the lead to a different campaign by providing the new campaign ID
Update the lead’s phone number (will be automatically formatted to E164 standard)
Set the lead status. Valid values: created, completed, reached-max-retries
Update or add custom variables. These will be merged with existing variables, not replaced
Response
Success message confirming the update
curl -X PUT "https://app.famulor.de/api/user/leads/123" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"campaign_id": 456,
"phone_number": "+1234567890",
"variables": {
"name": "John Doe",
"company": "Acme Corp"
}
}'
{
"message": "Lead updated successfully"
}
Notes
- The lead must belong to your account
- If changing the campaign, the new campaign must also be yours
- Phone numbers are automatically validated and formatted
- Variables are merged with existing ones (partial updates are supported)
- Only these fields can be modified:
campaign_id, phone_number, status, variables
- Status field has restrictions to maintain data integrity