Delete a Variation
DELETE
Delete a variation
https://api.moltin.com/pcm/variations/:variationId
You can only delete the variations that are not in use. If you delete a variation that is still in use, a 422 Failed Validation
error message is returned.
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
variationId | Required | string | The ID of the variation to delete. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Example
curl -X DELETE https://api.moltin.com/pcm/variations/:id \
-H "Authorization: Bearer XXXX"
Response Example
204 No Content