Delete Attribute Values
When to Use
- When a need exists to remove the value entered for an attribute.
- Requires the Product ID (not the Sku - the ChannelAdvisor unique ID representing the product).
- Place a GET Products request and $filter=Sku eq 'PRODUCT SKU VALUE'&$select=ID to return the ID to use in this request.
- Encode any characters in the Attribute Name that may be interpreted as operators in the URI.
Resource URL / Endpoint
DELETE https://api.channeladvisor.com/v1/Products(ProductID)/Attributes('Name')
($batch request format) DELETE https://api.channeladvisor.com/v1/AttributeValues(ProductID=ProductID, Name='Name')
Required Parameters
Property | Type (Max Length) | Required | Note |
---|---|---|---|
ProductID | integer (32 bit) | Required | Include in URL. The ChannelAdvisor defined unique ID (not the Sku value) of the product. See note above under "When to Use" about retrieving the Product ID. |
Name | string (32) | Required | Include in URL. The name of the attribute. |
Example Request
DELETE https://api.channeladvisor.com/v1/Products(12345678)/Attributes('Men's Shoe Size (US)')?access_token=xxxxxxxxxx
Example Response (Success)
204 No Content