Skip to main content
PATCH
Update Attribute Option

Description

This API endpoint allows the update of a select/multiselect attribute option. Select/multiselect attribute options are used to define various choices available for a select/multiselect attribute associated with a collection or list.

Path

string
required
Specifies the target type, which can be either “collection” or “list.”
string
required
A unique identifier for the target, either a collection ID or a list ID, depending on the target type.
string
required
The ID of the select/multiselect attribute to which the option belongs.
string
required
The ID of the select/multiselect attribute option to be updated.

Request Body

string
The name of the select/multiselect option.
string
Hex color code representing the color associated with the option.
boolean
Indicates whether the option is archived (true/false).
integer
The order or ranking of the option.

Response

boolean
Indicates the success or failure of the select/multiselect option update. In this case, true signifies a successful operation.
string
Provides a human-readable message accompanying the response. In this instance, it confirms the successful update of the attribute select/multiselect option with the message “Attribute option updated successfully.”