Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Users → update_user_role_api_v1_users_update_role_post

AI-generated

Summary

Update a user's role by sending their user ID and new role to the Open Web UI API endpoint.

Inputs

  • Id (required) — The unique identifier of the user whose role is to be updated.
  • Role (required) — The new role to assign to the user.
  • Skip Authentication — Optionally skip sending authentication credentials with the request.

Output shape

a single response object confirming the update operation, typically including status or updated user data

The operation uses a POST request to /api/v1/users/update/role with a JSON body including 'id' and 'role'. Authentication is included by default unless 'Skip Authentication' is set to true.

Examples

Example 1: Update user role

Set 'Id' to the user's identifier and 'Role' to the desired role string; authenticate with Open WebUI Auth unless skipping authentication is enabled.

Links

Discussion