Skip to main content
PUT
Update attribute option

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Path Parameters

attribute_id
integer
required

The attribute ID

Example:

1

id
integer
required

The attribute option ID

Example:

1

Body

application/json
name
string

Option name (max 255 characters). Must not be greater than 255 characters.

Example:

"Large"

color
string | null

Option color in hex format (max 7 characters). Must not be greater than 7 characters.

Example:

"#FF5733"

extra_price
number | null

Additional price for this option (minimum 0). Must be at least 0.

Example:

10.5

sort
integer | null

Sort order (minimum 0). Must be at least 0.

Example:

1

Response

Success