Skip to main content
POST
/
v2
/
users
/
{user_id}
/
role
Update User Role
curl --request POST \
  --url https://api.example.com/v2/users/{user_id}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "user": {
    "created_at": "2023-11-07T05:31:56Z",
    "modified_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "email": "<string>",
    "name": "<string>",
    "given_name": "<string>",
    "family_name": "<string>",
    "profile_picture": "<string>",
    "object": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.api.stuut.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

Body

application/json
role
enum<string>
required
Available options:
admin,
member,
manager

Response

Successful Response

user
object
required

Lightweight user for nested relationships.