Change a user's role
set_user_roleUpdate a user's role (admin or viewer) in an Avito ad account. Only changes role; access itself remains unchanged—use add_user or delete_user to grant or revoke.
Instructions
Changes the role of a user who already has access to the ad account. Applying the role a user already holds is a no-op. It does not grant access (use add_user) and does not revoke it (use delete_user). Returns the API's confirmation plus apiPointBalance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | admin — full access, including users, money transfers and campaign edits; viewer — read-only. | |
| userId | Yes | Numeric Avito user id, as returned by list_users. |