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

# Update Status

> Update an existing status

## Endpoint

<Card>
  <strong>PUT</strong> `/backend/status/{id}`
</Card>

## Path Parameters

<ParamField path="id" type="string" required>
  Status ID
</ParamField>

## Body Parameters

<ParamField body="name" type="string">
  Status name
</ParamField>

<ParamField body="color" type="string">
  Color in hexadecimal
</ParamField>

<ParamField body="order" type="integer">
  Display order
</ParamField>

## Request Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X PUT "https://api.leavo.ai/backend/status/status-uuid" \
    -H "Authorization: Bearer your_api_key_here" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "In Review",
      "color": "#8B5CF6"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.leavo.ai/backend/status/status-uuid', {
    method: 'PUT',
    headers: {
      'Authorization': 'Bearer your_api_key_here',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      name: 'In Review',
      color: '#8B5CF6'
    })
  });
  ```
</CodeGroup>

## Response

```json theme={null}
{
  "success": true,
  "data": {
    "id": "status-uuid",
    "name": "In Review",
    "color": "#8B5CF6",
    "order": 2,
    "updated_at": "2024-01-15T14:00:00Z"
  }
}
```
