v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-07186533829.2 KB
product:chat

Deactivate user

Deactivates user with possibility to activate it back

Sends events:

  • user.deactivated
post/users/{user_id}/deactivate

Path parameters

user_idstring required

Request body

created_by_idstring

ID of the user who deactivated the user

mark_messages_deletedboolean

Makes messages appear to be deleted

Response

Successful response

durationstring required

Duration of the request in milliseconds