Messaging

PATCH /v2/chats/{chat_id}/members/{user_id}

Owner only. Promotes a member to admin or demotes an admin to member. The owner role never changes through this route.

Request

  • Base URL
    https://api.arbital.xyz (the document declares no server; this is the origin it was published from)
  • URL
    https://api.arbital.xyz/v2/chats/{chat_id}/members/{user_id}
  • Auth
    HTTP bearer

Path parameters

chat_idstring uuid required
user_idstring uuid required

Request body

role'admin' | 'member' required

Response

Member role after the change; assigning the current role changes nothing

chat_idstring uuid required
joined_at_unix_msinteger required
role'owner' | 'admin' | 'member' required
state'active' | 'left' | 'removed' | 'banned' required
state_changed_at_unix_msinteger required
state_changed_by_user_idstring uuid nullable required
user_idstring uuid required
versionstring required

Changes

No recorded changes to this operation across all 1 revision of this API.