Pachca (beta) icon

Pachca (beta)

Интеграция с мессенджером Пачка

Chat → Update user role in chat

AI-generated

Summary

Update the role of a specific user within a chat by providing the chat ID, user ID, and the new role.

Inputs

  • Chat ID (required) — Numeric identifier of the chat to update the user role in.
  • User ID (required) — Numeric identifier of the user whose role needs to be updated.
  • New Role (required) — The new role to assign to the user; options include Admin, Editor (only for channels), and Member.

Output shape

a single record containing the updated user role information or confirmation of the update

Requires valid chat and user IDs; the role must be one of the predefined roles; errors occur if IDs are invalid or role assignment fails.

Discussion