Skip to main content

Create Role

PUThttps://api.eu1.coralogix.com/mgmt/openapi/5/aaa/custom-roles/v1

Creates a new custom role.

Authorizations

Authorizationstringheaderrequired
API key authentication

Request​

Body

application/json

Request for creating a custom role. A parent role is required, by id or by name: the service answers 400 without one.

    oneOf
    object
    description#string

    Human-readable description. Omitting it is the same as the empty string.

    name#string

    Display name. Unique in the team: the service answers 409 for a name that another role of the team has.

    parentRoleId#int64

    The parent role id.

    Possible values: >= 0

    parentRoleName#string

    The parent role name. It is case-sensitive: the service answers 400 for a name that no system role has.

    permissions#string[]

    List of permissions. Each must be a permission that the service knows, in any case, or the service answers 400. The service keeps the case that it was given. Permissions that differ only in case are one permission, and the service keeps the first in ASCII order. Omitting the list creates a role without permissions.

    teamId#int64

    Team identifier.

    Possible values: >= 0

Response

application/json

Response returned after successfully creating a custom role. It holds only the id of the new role: read the role with the get operation.

    id#int64required

    Unique identifier.

    Possible values: >= 0