Skip to main content
PUT
https://api.oxenty.api.br
/
api
/
sessions
/
:id
curl -X PUT "https://api.oxenty.api.br/api/sessions/550e8400-e29b-41d4-a716-446655440000" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "atendimento-vip",
    "allowGroup": false,
    "webhookUrl": "https://novo-servidor.com/webhook"
  }'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "atendimento-vip",
  "status": "connected",
  "phone": "5511999999999",
  "allowGroup": false,
  "webhookUrl": "https://novo-servidor.com/webhook",
  "webhookEvents": ["message.received", "message.status"],
  "hasWebhook": true,
  "createdAt": "2024-01-15T10:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z",
  "connectedAt": "2024-01-15T10:05:00.000Z"
}
Atualiza o nome, configurações de grupo ou webhook de uma sessão existente.

Path Parameters

id
string
required
ID da sessão (UUID).

Request Body

name
string
Novo nome da sessão.
allowGroup
boolean
Habilitar/desabilitar mensagens de grupo.
webhookUrl
string
Nova URL do webhook. Use null para remover.
webhookEvents
string[]
Novos eventos do webhook.
webhookSecret
string
Novo secret do webhook.
curl -X PUT "https://api.oxenty.api.br/api/sessions/550e8400-e29b-41d4-a716-446655440000" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "atendimento-vip",
    "allowGroup": false,
    "webhookUrl": "https://novo-servidor.com/webhook"
  }'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "atendimento-vip",
  "status": "connected",
  "phone": "5511999999999",
  "allowGroup": false,
  "webhookUrl": "https://novo-servidor.com/webhook",
  "webhookEvents": ["message.received", "message.status"],
  "hasWebhook": true,
  "createdAt": "2024-01-15T10:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z",
  "connectedAt": "2024-01-15T10:05:00.000Z"
}