Update Organization User Role
PATCH/api/v1/orgs/{orgId}/users/{userId}
Update the details of an organization user by specifying both orgId and userId.
Usage
Patch /orgs/{orgId}/users/{userId}
Parameters
orgId(Guid, required): the ID of the organization.userId(string, required): the ID of the user within the organization.- Request body: The updatable fields are:
orgRole(string, required): the role to assign to the user within the organization. (admin,operator,viewer)
Responses
200 OK: updated organization user details.404 Not Found: organization or user not found.409 Conflict: cannot change the role of the last admin in the organization.
Security This API requires authentication.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
- 501
OK
Bad Request
Unauthorized
Forbidden
Not Found
Conflict: Cannot change the role of the last admin in the organization.
Internal Server Error
Not Implemented