Skip to main content
DELETE
Erase Values of Custom Variables on a Lead
Using this endpoint, you are NOT deleting your custom variables, you are erasing the values within.
Company fields — companyName, companyIndustry, any company-prefixed key — reach the company record the lead is linked to, the same record every other lead linked to it reads, not that lead alone. The response says so: warnings carries a company-fields-write-company-record entry naming those keys in params.fields. It is informational, your request went through. To edit a company on purpose, use Upsert Company. companyDomain cannot be erased here — it is one of the identifiers this endpoint refuses.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

leadId
string
required

The unique identifier of the lead

Query Parameters

customField1
string

Example custom variable

customField2
string

Example custom variable

customField3
string

Example custom variable

Response

Success

ok
boolean
Example:

true

warnings
object[]

Optional warnings, never a failure — the request went through. They tell you what happened to the company part: written, or skipped and why. See code.