> ## 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 Status Option

> This endpoint updates a status attribute option.

#### Description

This API endpoint allows the update of a status attribute option. Status attribute options are used to define different stages or states that an item can go through in 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 status attribute to which the option belongs.
</ParamField>

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

#### Request Body

<ParamField body="name" type="string">
  The name of the status 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="celebrationEnabled" type="boolean">
  Indicates whether celebration is enabled for the option (true/false).
</ParamField>

#### Response

<ResponseField name="status" type="boolean">
  Indicates the success or failure of the status 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 status option with the message
  "Attribute status updated successfully."
</ResponseField>

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

  ```json 401-Unauthorised theme={null}
  {
    "status": false,
    "message": "No token provided"
  }
  ```
</ResponseExample>
