# Conversas: atribuicao, status, prioridade, labels e atributos

Use endpoints especificos para organizar a fila de atendimento.

## Atribuicao

```bash
curl -X POST "$BASE_URL/api/v1/accounts/$ACCOUNT_ID/conversations/456/assignments" \
  -H "api_access_token: $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"assignee_id":35, "team_id":5}'
```

## Status

Status comuns: `open`, `pending`, `resolved` e `snoozed`.

```bash
curl -X POST "$BASE_URL/api/v1/accounts/$ACCOUNT_ID/conversations/456/toggle_status" \
  -H "api_access_token: $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status":"pending"}'
```

## Prioridade

```bash
curl -X POST "$BASE_URL/api/v1/accounts/$ACCOUNT_ID/conversations/456/toggle_priority" \
  -H "api_access_token: $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"priority":"high"}'
```

## Labels

```bash
curl -X POST "$BASE_URL/api/v1/accounts/$ACCOUNT_ID/conversations/456/labels" \
  -H "api_access_token: $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"labels":["suporte", "api"]}'
```

## Atributos personalizados

```bash
curl -X POST "$BASE_URL/api/v1/accounts/$ACCOUNT_ID/conversations/456/custom_attributes" \
  -H "api_access_token: $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"custom_attributes":{"protocolo":"DG-2026-0001"}}'
```