curl --request PATCH \
--url https://api.trysela.com/api/leads/{id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"phone_number": "<string>",
"metadata": "<any>",
"status": "UNKNOWN",
"status_reason": "UNKNOWN",
"lead_type": 123,
"external_id": "<string>",
"us_state": "AL",
"lead_source": "<string>",
"reengagement_count": 1073741823,
"reengagement_time": "2023-11-07T05:31:56Z",
"call_schedule_start_time": "2023-11-07T05:31:56Z"
}'
{
"id": 123,
"email": "jsmith@example.com",
"phone_number": "<string>",
"metadata": "<any>",
"modified_time": "2023-11-07T05:31:56Z",
"created_time": "2023-11-07T05:31:56Z",
"status": "UNKNOWN",
"status_reason": "UNKNOWN",
"lead_type": 123,
"next_call_time": "<string>",
"external_id": "<string>",
"us_state": "AL",
"lead_source": "<string>",
"reengagement_count": 1073741823,
"reengagement_time": "2023-11-07T05:31:56Z",
"call_schedule_start_time": "2023-11-07T05:31:56Z"
}
Updates a lead, e.g. if the status changes.
curl --request PATCH \
--url https://api.trysela.com/api/leads/{id}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"phone_number": "<string>",
"metadata": "<any>",
"status": "UNKNOWN",
"status_reason": "UNKNOWN",
"lead_type": 123,
"external_id": "<string>",
"us_state": "AL",
"lead_source": "<string>",
"reengagement_count": 1073741823,
"reengagement_time": "2023-11-07T05:31:56Z",
"call_schedule_start_time": "2023-11-07T05:31:56Z"
}'
{
"id": 123,
"email": "jsmith@example.com",
"phone_number": "<string>",
"metadata": "<any>",
"modified_time": "2023-11-07T05:31:56Z",
"created_time": "2023-11-07T05:31:56Z",
"status": "UNKNOWN",
"status_reason": "UNKNOWN",
"lead_type": 123,
"next_call_time": "<string>",
"external_id": "<string>",
"us_state": "AL",
"lead_source": "<string>",
"reengagement_count": 1073741823,
"reengagement_time": "2023-11-07T05:31:56Z",
"call_schedule_start_time": "2023-11-07T05:31:56Z"
}
Token-based authentication with required prefix "Token"
A unique integer value identifying this lead.
The response is of type object
.