Skip to main content
POST
/
accounts
/
user
/
role
/
update
/
Update user role
curl --request POST \
  --url https://api.futureagi.com/accounts/user/role/update/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "role": "admin"
}'

Authorizations

Authorization
string
header
required

JWT token obtained from /accounts/token/ endpoint

Body

application/json
userId
string<uuid>
required
role
enum<string>
required
Available options:
admin,
member,
viewer

Response

200

Role updated