customer.set_custom_fields
Set the declared custom fields on a customer (whole bag; validated against the definitions). A customer is a record that changes, so the values are editable.
- Scope:
customer.admin.write - System: no
- Reachable from:
POST /v1/commands/customer.set_custom_fields(tenant credential) · MCP toolcustomer.set_custom_fields· SDKclient.call('customer.set_custom_fields', …) - Events:
customer.updated
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "custom_fields": { "additionalProperties": {}, "propertyNames": { "type": "string" }, "type": "object" }, "customer_id": { "minLength": 1, "type": "string" } }, "required": [ "customer_id", "custom_fields" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "customer_id": { "type": "string" } }, "required": [ "customer_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)