deleteattributeset.md

Delete Attribute Set

Deletes the attribute set identified by id (a positive integer). The tenant's default attribute set cannot be deleted.

Authentication

Requires a valid API key in the X-API-KEY header.

Query Parameters

Parameter Required Description
deleteAssociatedProductsAndVariants ❌ No When true, products and variants associated to the attribute set are deleted along with it. When false or omitted, those products and variants are reassigned to the tenant's default attribute set.

Response

Error Responses

Example

Request:

DELETE /v2/AttributeSets(7)?deleteAssociatedProductsAndVariants=false HTTP/1.1
X-API-KEY: your-api-key-here

Response:

HTTP/1.1 200 OK
Content-Type: application/json

Path parameters:

Query parameters:

Response 200 fields (application/json):

Response 400 fields (application/json):

Response 401 fields (application/json):

Response 500 fields (application/json):

Response 204 fields