PATCH
/
api
/
leads
/
{id}
/
Update a Lead
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"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

A unique integer value identifying this lead.

Body

Response

200 - application/json

The response is of type object.