跳至主要内容

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

OK