getattributeset.md

Get Attribute Set

Returns a single attribute set identified by id. Accepted values:

Any other value is rejected with 400 Bad Request.

The response includes the attribute set name and its form layout configuration for Products and Variants (ProductLayout, VariantLayout). When the set has no Variant layout configured, VariantLayout and VariantAttributeIds are omitted from the response.

See also: A legacy OData-style version of this endpoint is available at GET /AttributeSets({attributeSetIdentifier}).

Authentication

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

Response

200 OK — The requested attribute set with its layout configuration.

Error Responses

Example

Request:

GET /v2/AttributeSets(1) HTTP/1.1
X-API-KEY: your-api-key-here

Response:

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

Endpoint: GET /v2/AttributeSets({id})

Version: 2.0.0

Path parameters:

Response 200 fields (application/json):

Response 400 fields (application/json):

Response 401 fields (application/json):

Response 500 fields (application/json):