Partially update 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 payload accepted when partially updating an attribute. All fields are optional; only the fields you send are changed.
The unique machine key of the attribute.
^[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.
Localized values of the translatable fields, keyed by language code. Write-only.
The updated 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.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested attribute does not exist.
PATCH /api/remote/1/attributes/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 266
{
"key": "text",
"name": "text",
"data_type": "text",
"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": true,
"is_form_field_required": true,
"translations": null
}{
"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?

