> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zixflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Attribute Option

> This endpoint updates a select/multiselect 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

<ParamField path="target" type="string" required>
  Specifies the target type, which can be either "collection" or "list."
</ParamField>

<ParamField path="targetId" type="string" required>
  A unique identifier for the target, either a collection ID or a list ID, depending on the target type.
</ParamField>

<ParamField path="attributeId" type="string" required>
  The ID of the select/multiselect attribute to which the option belongs.
</ParamField>

<ParamField path="optionId" type="string" required>
  The ID of the select/multiselect attribute option to be updated.
</ParamField>

#### Request Body

<ParamField body="name" type="string">
  The name of the select/multiselect option.
</ParamField>

<ParamField body="color" type="string">
  Hex color code representing the color associated with the option.
</ParamField>

<ParamField body="isArchived" type="boolean">
  Indicates whether the option is archived (true/false).
</ParamField>

<ParamField body="order" type="integer">
  The order or ranking of the option.
</ParamField>

#### Response

<ResponseField name="status" type="boolean">
  Indicates the success or failure of the select/multiselect option update. In this case,
  true signifies a successful operation.
</ResponseField>

<ResponseField name="message" type="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."
</ResponseField>

<ResponseExample>
  ```json 200-Success theme={null}
  {
      "status": true,
      "message": "Attribute option updated successfully"
  }
  ```

  ```
  {
    "status": false,
    "message": "No token provided"
  }
  ```
</ResponseExample>
