PatchProspectDataFieldsRequest
| Field | Type | Description |
|---|---|---|
prospect_id | string | |
fields | map<string, google.protobuf.Value> | Prospect field values keyed by data field name (or id): a string, or null to clear. |
Required scope: customer_datafield:write
POST /public-api/publicapi.v1.Customer/PatchProspectDataFields
Keeps a lead’s details current after it came in: for example, the prospect
that Submit Flow or
Create Customer returned as
prospectId first arrived with Temperatuur Warm and is now Hot. Keys are the names (or
ids) of prospect fields from
List Data Fields with entityType
prospect; the response is the prospect as
Get Prospect returns it.
null or "": clear that field.Open and won prospects can be patched, also while their customer is on hold,
and a change moves the prospect’s updatedAt, so
List Prospects with
updatedAfter returns it.
invalid_request (400): fields is empty, names an unknown field or the
same field twice, a value is not a string or null, or does not fit its
field. A customer field is refused too; set it with
Patch Customer Data Fields.not_found (404): no such prospect, or one of a customer the API key may
not read.permission_denied (403): the API key may read the customer but not edit it.failed_precondition (412): the field’s value is recorded by a flow
milestone and locked.POST /public-api/publicapi.v1.Customer/PatchProspectDataFields Patches one prospect's own data fields without replacing unspecified fields; null or "" clears a field.
| Field | Type | Description |
|---|---|---|
prospect_id | string | |
fields | map<string, google.protobuf.Value> | Prospect field values keyed by data field name (or id): a string, or null to clear. |
| Field | Type |
|---|---|
prospect | Prospect |
curl https://portal.heyx.app/public-api/publicapi.v1.Customer/PatchProspectDataFields \ -H "Authorization: Bearer hx_sk_..." \ -H "Content-Type: application/json" \ -d '{ "prospectId": "5b2e0c9a-6d1f-4a3b-8e7c-2f9a1b0c3d4e", "fields": { "Temperatuur": "Hot", "Notitie lead": null } }'{ "prospect": { "id": "5b2e0c9a-6d1f-4a3b-8e7c-2f9a1b0c3d4e", "customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04", "status": "open", "origin": "public_api", "openedAt": "1794812400", "updatedAt": "1794816000", "customFields": { "Temperatuur": "Hot" } }}