sku_lists
Update a SKU list
Changed onUpdate a SKU list
patch/sku_lists/{skuListId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/sku_lists/{skuListId}
- AuthHTTP bearer
Path parameters
skuListIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "Personal list",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"image_url": "https://img.yourdomain.com/skus/xYZkjABcde.png",
"sku_code_regex": "^(A|B).*$",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"customer": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated SKU list 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
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valuesku_listswas removed - info
added the new
sku_listsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking