> ## 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.

# Atualizar Status

> Atualiza um status existente

## Path Parameters

<ParamField path="id" type="string" required>
  UUID do status
</ParamField>

## Request Body

<ParamField body="name" type="string">
  Nome do status
</ParamField>

<ParamField body="description" type="string">
  Descrição do status
</ParamField>

<ParamField body="color" type="string">
  Cor em formato hexadecimal
</ParamField>

<ParamField body="default" type="boolean">
  Se deve ser o status padrão
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://api.leavo.ai/backend/status/770e8400-e29b-41d4-a716-446655440002" \
    -H "Authorization: Bearer sua_chave_aqui" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Super Hot Lead",
      "color": "#ff0000"
    }'
  ```

  ```javascript JavaScript theme={null}
  const statusId = '770e8400-e29b-41d4-a716-446655440002';

  const response = await fetch(`https://api.leavo.ai/backend/status/${statusId}`, {
    method: 'PUT',
    headers: {
      'Authorization': 'Bearer sua_chave_aqui',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      name: 'Super Hot Lead',
      color: '#ff0000'
    })
  });

  const status = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "770e8400-e29b-41d4-a716-446655440002",
    "tenant_id": "660e8400-e29b-41d4-a716-446655440000",
    "name": "Super Hot Lead",
    "description": "Lead com alta probabilidade de conversão",
    "color": "#ff0000",
    "default": false,
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T11:00:00Z"
  }
  ```
</ResponseExample>
