Skip to main content
UsersUpdate User Role by admin
TestMu AI
StatusCommunityBlog
Users

Update User Role by admin

Update User Role by admin

PATCH
/api/organization/user/{user_id}
Update User Role by admin
curl --request PATCH \
--url "https://auth.lambdatest.com//api/organization/user/{user_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"role": "<role>"
}'
{
"message": "Organization role updated Successfully",
"type": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

user_idintegerrequired

user id of member

Body

application/json
rolestring

Response

application/json

Update User Role

messagestring
typestring
Update User Role by admin
curl --request PATCH \
--url "https://auth.lambdatest.com//api/organization/user/{user_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"role": "<role>"
}'
{
"message": "Organization role updated Successfully",
"type": "success"
}