This page documents the canonical HTTP contract for this endpoint.
Developer API keys need the listed scope. A valid authenticated user session may also call this route.
For standard fields, poll GET /api/operation-runs/{operation_run_id} to follow the queued mutation. The example shows the standard-field queued response; custom-field updates are also queued. Resolve field_ref values from the CRM field catalog.
Body parameters
selection· optionalobject
Company selection; mutually exclusive with company_ids.
company_ids· optionalarray<string>
Legacy explicit company IDs; mutually exclusive with selection.
field_refrequiredstring
CRM catalog ID for a writable Company field.
operationrequiredstring
set or clear.
value· optionalany
Required and non-null for set; omit or send null for clear.
| Name | Type | Description |
|---|---|---|
| selection | object | Company selection; mutually exclusive with company_ids. |
| company_ids | array<string> | Legacy explicit company IDs; mutually exclusive with selection. |
| field_refrequired | string | CRM catalog ID for a writable Company field. |
| operationrequired | string | set or clear. |
| value | any | Required and non-null for set; omit or send null for clear. |
Errors
| Status | Meaning |
|---|---|
| 401 | Authentication is missing or invalid. |
| 403 | The credential is invalid or lacks the required scope. |
| 400 | Selection or field lookup failed. |
| 422 | Operation must be set or clear; set requires a non-null, non-empty value; clear may omit value or send null; non-null values are rejected; selection and company_ids are mutually exclusive. |
| 404 | No companies match the selection. |
| 409 | The catalog field has no supported bulk writer. |
