customer_groups
Update a customer group
Changed onUpdate a customer group
patch/customer_groups/{customerGroupId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/customer_groups/{customerGroupId}
- AuthHTTP bearer
Path parameters
customerGroupIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "VIP",
"code": "vip1",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The updated customer group object
Changes
- breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valuecustomer_groupswas removed - info
added the new
customer_groupsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking