Responder la encuesta de desconexión

Usalo para registrar por qué se desconectó un número, respondiendo la encuesta de desconexión con uno de los motivos predefinidos.

POST
/devices/{device}/disconnect-survey

Escritura · requiere el permiso accounts:write.

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de la ruta

device*integer

The device ID

Cuerpo del pedido

application/json
  1. body

Validates the payload for POST /devices/{device}/disconnect-survey.

Authorization is delegated to the controller (authorize('update', $device)), matching the pattern used across the Device module's other write endpoints.

reason accepts only DeviceDisconnectReasonEnum::writableValues() ({1, 2, 4, 5}) — change disconnect-survey-block-type: the legacy 3 (whatsapp_blocked, ambiguous permanent/temporary) is rejected with 422 on write, even though it remains a valid value for reads/metrics.

reason*integer
Valor en"1""2""4""5"

Cuerpo de la respuesta

application/json
  1. response
curl -X POST "https://example.com/devices/0/disconnect-survey" \  -H "Content-Type: application/json" \  -d '{    "reason": "1"  }'
{}