Users › Update User Role by admin
Users
Update User Role by admin Update User Role by admin
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" : "Admin"
} '
{
"message" : "Organization role updated Successfully" ,
"type" : "success"
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters user_id integer required
user id of member
Response 200▼
application/json Update User Role
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" : "Admin"
} '
{
"message" : "Organization role updated Successfully" ,
"type" : "success"
}