put https://app.ecwid.com/api/v3//customer_groups/
Update an existing customer group in an Ecwid store referring to its ID.
Access scopes
Requires the following access scope: update_customers
Request
A JSON object with the following fields:
Field | Type | Description |
---|---|---|
name | string | Customer group name |
Response
A JSON object of type 'UpdateStatus' with the following fields:
UpdateStatus
Field | Type | Description |
---|---|---|
updateCount | number | The number of update customers (0 or 1 depending on whether the request was successful) |
Errors
In case of error, Ecwid responds with an error HTTP status code and JSON-formatted body containing error description.
HTTP codes
HTTP Status | Response JSON | Description |
---|---|---|
400 | Request parameters are malformed | |
402 | Store doesn't have access to customer groups feature, it's available on Business plan and higher | |
404 | The customer group with given ID is not found | |
415 | Unsupported content-type: expected application/json or text/json | |
500 | The update request failed because of an error on the server |
Error response body (optional)
Field | Type | Description |
---|---|---|
errorMessage | string | Error message |