Zum Hauptinhalt springen

Update user roles/teams

Changes the user roles/teams within an organization. If the user role is changed to Admin, all teams are removed! In addition, the caller is not allowed to send team IDs if the user is an admin.

Path Parameters
userId uuid REQUIRED
Header Parameters
organization-id uuid REQUIRED

ID of organization context this request belongs to.

Request Body REQUIRED
admin boolean

Specifies if user should be an administrator [true|false].

teams uuid[]
Responses
200

User roles/teams successfully updated

Schema OPTIONAL
email string OPTIONAL
firstname string OPTIONAL
id uuid OPTIONAL
lastname string OPTIONAL
admin boolean OPTIONAL
teams uuid[] OPTIONAL
userOrganizationRole string OPTIONAL

Possible values: [ADMIN, USER, TECHNICAL_USER]

400

Bad Request (e.g. element not found or resource conflict).

Schema OPTIONAL
message string OPTIONAL
timestamp date-time OPTIONAL
traceId string OPTIONAL
type string OPTIONAL
403

Missing permission

Schema OPTIONAL
message string OPTIONAL
timestamp date-time OPTIONAL
traceId string OPTIONAL
type string OPTIONAL
500

Internal server error (Internal service communication or process error).

Schema OPTIONAL
message string OPTIONAL
timestamp date-time OPTIONAL
traceId string OPTIONAL
type string OPTIONAL