Updating resources
How to update a resource via API
Last updated
How to update a resource via API
Last updated
You can update a resource by sending a PATCH
request to the resources endpoint, with a JSON payload.
The Content-Type header must be application/vnd.api+json
.
You can get the list of arguments, with type and examples from the documentation of each resource.
The following request updates the description of an existing SKU:
The following request changes the shipping category of an existing SKU:
If a relationship is optional for the creation of a resource, it can be removed by sending PATCH
request with the data
object set as null
.
The following request removes a customer from a customer group: