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
Escritura · requiere el permiso accounts:write.
httpheader
AuthorizationBearer <clave>device*integerThe device ID
application/json- 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*integerValor en
"1""2""4""5"application/json- response
curl -X POST "https://example.com/devices/0/disconnect-survey" \ -H "Content-Type: application/json" \ -d '{ "reason": "1" }'{}