POST /v1/users/{userId}/roles

Changed on

Create user roles.

Request

  • Base URL
    https://nhse-${ENV}-innovation-service-admin-functions.azurewebsites.net/api
  • URL
    https://nhse-${ENV}-innovation-service-admin-functions.azurewebsites.net/api/v1/users/{userId}/roles
  • Auth
    none declared

Path parameters

userIdstring uuid required

Request body

role'ADMIN' | 'ASSESSMENT' | 'ACCESSOR' | 'QUALIFYING_ACCESSOR' required

Role of the user.

organisationIdstring uuid required

Id of the organisation.

unitIdsstring[] required

Ids of the organisation units.

Response

The created roles.

idstring uuid required

The role id.

Changes

    • info

      the response property / became required for the status

    • breaking

      added the new required request property

    • warning

      removed the request property

    • info

      added subschema #1 to the request body oneOf list