Auth API

Assign Role To User

Changed on

Assign a role to a user.

Args: user_id: The user ID request: AssignRoleRequest with role_name assigned_by: Authenticated user making the request

Returns: UserRoleAssignment with assignment details

post/api/auth/user/{user_id}/roles

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

user_idstring required

Headers

x-osmo-userstring nullable

Request body

role_namestring required

Response

Successful Response

user_idstring required
role_namestring required
assigned_bystring required
assigned_atstring date-time required

Changes

    • ○

      added the optional property // to the response with the status

    • ○

      added the optional property // to the response with the status

    • ○

      header request parameter x-osmo-user list-of-types was widened by adding types null

    • ○

      for the header request parameter x-osmo-user, the type was generalized from string to no type