API Reference
//Get Attribute Set
Returns a single attribute set identified by id. Accepted values:
default(case-insensitive) — retrieves the tenant's default attribute set.- Positive integer — retrieves the attribute set with that numeric ID.
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}).
Requires a valid API key in the X-API-KEY header.
200 OK — The requested attribute set with its layout configuration.
- 400 Bad Request —
idis notdefaultor a valid positive integer. - 401 Unauthorized — Missing or invalid API key. Returned by the API gateway as
{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }. - 404 Not Found — No attribute set with the given identifier exists for this tenant.
- 500 Internal Server Error — Unexpected technical error.
Request:
GET /v2/AttributeSets(1) HTTP/1.1
X-API-KEY: your-api-key-hereResponse:
HTTP/1.1 200 OK
Content-Type: application/jsonGET
curl -i -X GET \
'https://api2.saleslayer.com/catalog/v2/AttributeSets({id})'Response
{ "@readLink": "string", "@editLink": "string", "@etag": "string", "@navigationLinks": [ { … } ], "@associationLinks": [ { … } ], "@context": "string", "value": null }