Skip to main content
PATCH
/
projects
/
{id}
/
users
/
{userId}
/
role
Update user role in project
curl --request PATCH \
  --url https://api.example.com/projects/{id}/users/{userId}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "user"
}'

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Project ID

userId
string
required

User ID to update

Body

application/json
role
enum<string>
required
Available options:
user,
admin,
project_manager,
super_admin

Response

User role successfully updated