TryzenAPI
Leads

Set or delete a lead's custom fields

PATCH
/v1/leads/{leadId}/custom-fields

Access: an API key (or an org-wide key naming the workspace) with manage on leads.

A merge: a string sets the field, null deletes it, fields left out stay. At most 100 per call; names use letters, numbers and _ (≤ 128) and can't be a default variable (FIRST_NAME, COMPANY…); values ≤ 2,048 characters (400 otherwise). Every bad name comes back at once in error.problems (422 invalid_custom_fields). The fields are usable as {variables} in sequences.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

leadId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
customFields*

Response Body

Default Response

application/json
  1. response
leadId*string
Match^[0-9a-f]{24}$
customFields*
Example Request
curl -X PATCH 'https://api.tryzen.co/v1/leads/string/custom-fields' \  -H 'Content-Type: application/json' \  -d '{  "customFields": {    "property1": "string",    "property2": "string"  }}'
Example Response
{  "leadId": "string",  "customFields": {    "property1": "string",    "property2": "string"  }}