Create an attribute value
Creates a new value for an attribute.
The combination of
attributeandvaluemust be unique. Creating a duplicate is rejected.If
orderis omitted, the server tries to derive it from the numeric interpretation ofvalue; non-numeric values leaveorderunset.The write-only
translationsobject may be supplied to provide localized values of translatable fields (label).
Dynamic Setting
LANDING_PAGE_ATTRIBUTES
array of strings
[]
When the parent attribute's key is in this list, a landing page is automatically created for the new attribute value. See the Dynamic Settings & Environment Variables section.
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 value.
The identifier of the parent attribute. Together with value, must be unique.
The value. Together with attribute, must be unique.
The sort order of the value. When omitted, the server tries to derive it from the numeric interpretation of value.
The translatable display label of the value.
Localized values of the translatable fields, keyed by language code. Write-only.
The attribute value was created.
A predefined value of an attribute as returned by the API.
The unique identifier of the attribute value.
The identifier of the parent attribute.
The value.
The sort order of the value. Values are listed by order, then value.
The translatable display label of the value, 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/v1/remote/1/attribute_value/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"attribute": 1,
"value": "text",
"order": null,
"label": null,
"translations": null
}{
"pk": 501,
"attribute": 42,
"value": "Red",
"order": 1,
"label": "Red"
}Last updated
Was this helpful?

