Skip to main content
POST
/
admin
/
attributes
/
{id}
/
values
Create Attribute Value
curl --request POST \
  --url https://api.example.com/admin/attributes/{id}/values \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "<string>",
  "rank": 123,
  "metadata": {}
}
'
{
  "attribute_possible_value": {
    "id": "<string>",
    "value": "<string>",
    "rank": 123,
    "metadata": {},
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the attribute.

Body

application/json
value
string
required

The value of the possible value.

Minimum string length: 1
rank
number
required

The rank/order of the possible value.

metadata
object

Additional metadata for the possible value.

Response

201 - application/json

Created

attribute_possible_value
AttributePossibleValue · object

Attribute possible value object