Set Customer Data
gorgias_set_customer_dataSet a customer's data field by replacing stored data entirely. Use the version parameter for optimistic concurrency to prevent overwriting newer updates.
Instructions
PUT /api/customers/{customer_id}/data — Set a customer's data field. Replaces the stored customer data entirely. Supports optimistic concurrency via the version parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The customer data. Free-form JSON field — any valid JSON value is accepted (object, array, string, number, boolean, or null). | |
| version | No | ISO 8601 datetime timestamp for optimistic concurrency control. If Gorgias already has a more recent version stored, the request will be silently ignored. | |
| customer_id | Yes | The ID of the customer to update. |