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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_id": "<customer_id>",
"data": "<data>"
},
"name": "gorgias_set_customer_data"
}
}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. |