Admin

Create a new role mapping

Changed on

Creates a new mapping between a user/principal and a role.

This operation can fail for the following reasons:

  • A server error occurred (HTTP error 500)
post/admin/roleMappings

Request

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

Request body

principalIdstring required
role'READ_ONLY' | 'DEVELOPER' | 'ADMIN' required
principalNamestring

A friendly name for the principal.

Example request

{
  "principalId": "svc_account_84874587_123484",
  "principalName": "famartin-svc-account",
  "role": "READ_ONLY"
}

Response

Returned when the role mapping was successfully created.

Changes