Skip to content

Отметить сообщения обращения прочитанными

Request

Помечает сообщения пользователя до указанного ID включительно. Требуется SUPPORT:FULL.

Security
bearerAuth or jwtCookie
Path
dialogIdinteger, (int64), >= 1required

Идентификатор приватного диалога пользователя с поддержкой.

Bodyapplication/jsonrequired
last_message_idinteger, (int64), >= 1required
curl -i -X POST \
  'https://felmee.com/api/admin/support/chats/{dialogId}/read' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "last_message_id": 1
  }'

Responses

Сообщения отмечены прочитанными

Bodyapplication/json
codeErrorstring or nullrequired

Устаревший camelCase-alias поля error_code; при ошибке оба поля содержат одинаковое значение.

successbooleanrequired

Флаг успешного выполнения запроса

messagestringrequired

Человекочитаемое описание результата

error_codestring or null(ERROR_CODE)required

Код ошибки. Для успешных ответов всегда null.

Enum:"INVALID_BODY""INVALID_DATE""invalid_body""unauthorized""not_found""slot_unavailable""conflict""BUSINESS_INACTIVE""INSUFFICIENT_FUNDS""REQUISITES_REQUIRED"
dataobject or nullrequired

Полезная нагрузка. Может быть объектом, массивом или null.

Response
{ "success": true, "message": "Support messages marked as read", "codeError": null, "error_code": null, "data": { "updated": 3 } }