Skip to main content

Delete Attribute Value

Delete an existing attribute value.

HTTP Request

DELETE/api/products/attributes/:attribute_id/values/:value_id

Authorization

Authorization

  • Required: Yes
  • Permission: Staff or Admin
  • Authentication: Token-based (Authorization: Token <your_api_key>)

Path Parameters

ParameterTypeRequiredDescription
attribute_idIntegerYesUnique ID of the attribute to delete
value_idYesUnique ID of the attribute value to delete

Example Requests

1import requests
2
3# Delete a specific attribute value
4response = requests.delete('http://www.example.com/api/products/attributes/123/values/456',
5  headers={'Authorization': 'Token <your_api_key>'}
6)
7print(response.json())

Status Codes

CodeDescription
204Attribute value deleted successfully
401Unauthorized — authentication required
403Forbidden — insufficient permissions
404Not found — attribute or value does not exist
500Internal server error

Response Fields

FieldTypeDescription
NoneNoneNo response body returned