Create an attribute configuration
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The payload accepted when creating or fully updating an attribute configuration. On update, attribute and attribute_set are immutable and any values sent for them are ignored.
The identifier of the attribute. Together with attribute_set, must be unique.
The identifier of the attribute set. Together with attribute, must be unique.
Overrides the attribute's is_required; null inherits it.
Overrides the attribute's is_visible; null inherits it.
Overrides the attribute's is_searchable; null inherits it.
Overrides the attribute's is_filterable; null inherits it.
Overrides the attribute's is_variant; null inherits it.
Overrides the attribute's is_variant_listable; null inherits it.
Overrides the attribute's is_form_required; null inherits it.
Overrides the attribute's is_form_field_required; null inherits it.
The sort order of the attribute within the set.
The identifier of the attribute configuration group this configuration belongs to.
The attribute configuration was created.
The membership of one attribute in one attribute set. Each behavior flag is nullable; a null value means the flag is inherited from the parent attribute, and the read-only default_fields array reports which flags are currently inherited.
The unique identifier of the attribute configuration.
The identifier of the attribute.
The identifier of the attribute set.
Overrides the attribute's is_required; null inherits it.
Overrides the attribute's is_visible; null inherits it.
Overrides the attribute's is_searchable; null inherits it.
Overrides the attribute's is_filterable; null inherits it.
Overrides the attribute's is_variant; null inherits it.
Overrides the attribute's is_variant_listable; null inherits it. Changing this recomputes the listable status of the attribute set's products.
Overrides the attribute's is_form_required; null inherits it.
Overrides the attribute's is_form_field_required; null inherits it.
The names of the behavior flags currently inherited from the attribute (those left null).
The sort order of the attribute within the set.
The identifier of the attribute configuration group this configuration belongs to, when any.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/remote/1/attribute_config/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 254
{
"attribute": 1,
"attribute_set": 1,
"is_required": null,
"is_visible": null,
"is_searchable": null,
"is_filterable": null,
"is_variant": null,
"is_variant_listable": null,
"is_form_required": null,
"is_form_field_required": null,
"order": null,
"attribute_config_group": null
}{
"pk": 7001,
"attribute": 42,
"attribute_set": 15,
"is_required": true,
"is_visible": null,
"is_searchable": null,
"is_filterable": true,
"is_variant": null,
"is_variant_listable": null,
"is_form_required": null,
"is_form_field_required": null,
"default_fields": [
"is_visible",
"is_searchable",
"is_variant",
"is_variant_listable",
"is_form_required",
"is_form_field_required"
],
"order": 0,
"attribute_config_group": null
}Last updated
Was this helpful?

