Retrieve an attribute
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the attribute.
The requested attribute.
An attribute definition as returned by the API.
The unique identifier of the attribute.
The unique machine key of the attribute. Matches ^[a-zA-Z_][a-zA-Z0-9_-]*$.
The human-readable, translatable name of the attribute.
The data type of an attribute, controlling how its value is entered and interpreted. See the Data Types table under Attributes.
The identifier of the attribute value used as the default, when any.
Whether the attribute must have a value on the product.
Whether the attribute is shown in management and storefront contexts.
Whether the attribute is indexed for search.
Whether the attribute can be used as a storefront filter.
Whether the attribute distinguishes variants of a product.
Whether the attribute participates in choosing the listable variant.
Whether the attribute is required in the product form.
Whether the attribute's form field is required.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested attribute does not exist.
GET /api/remote/1/attributes/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"pk": 42,
"key": "color",
"name": "Color",
"data_type": "dropdown",
"default_value": null,
"is_required": true,
"is_visible": true,
"is_searchable": true,
"is_filterable": true,
"is_variant": true,
"is_variant_listable": true,
"is_form_required": false,
"is_form_field_required": false
}Last updated
Was this helpful?

