Skip to main content
PUT
Update user role

Authorizations

Authorization
string
header
required

All of WotNot's APIs use Bearer token authentication. Send your account token as Bearer <token>. You can find it in Settings > Account Settings > Developer. Keep it on your server: anyone who has it can call the API as your account.

Path Parameters

account_id
string
required

The ID of your WotNot account.

user_id
string
required

The ID of the user whose role you want to change. You can find user IDs in users_in_role from Get account roles.

Body

application/json

The new role.

role_id
string
required

The ID of the new role. Get it from Get account roles. It must be a number.

Example:

"262185"

Response

The role was changed. Returns ok set to true.

ok
boolean
required

true when the request worked. Errors return false.

Example:

true

Last modified on October 23, 2026