Updating a lead modifies the lead record globally across all campaigns. The email field is required even if not being changed.
Path Parameters
The campaign ID (used for validation and audit logging)
Query Parameters
Request Body
Lead’s email address (required field, even if not being changed)
Custom fields object (maximum 200 key-value pairs). Custom fields are merged with existing fields, not replaced.
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/123/leads/456?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Corp",
"custom_fields": {
"job_title": "CTO",
"department": "Engineering"
}
}'
Response Codes
Lead updated successfully
Invalid or missing API key
Campaign or lead not found, or you don’t have access
Missing required email field or invalid custom_fields object size