Skip to main content

Bulk Create API User Roles

POST 

/api-user-roles/bulk/create/

Add roles to multiple API users in one operation.

Request

Body

required

  • Array [

  • user

    object

    required

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters

    A unique Base58 value identifying this object.

    role

    object

    required

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters

    A unique Base58 value identifying this object.

    scope

    object

    required

    tier stringrequired

    Possible values: [account, team, target]

    • account - account
    • team - team
    • target - target

    team

    object

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters

    A unique Base58 value identifying this object.

    target

    object

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters

    A unique Base58 value identifying this object.

  • ]

Responses

Schema

  • Array [

  • id stringrequired

    A unique Base58 value identifying this object.

    user

    object

    required

    id stringrequired

    A unique Base58 value identifying this object.

    email email

    Possible values: <= 254 characters

    Email of the user.

    name stringrequired

    Possible values: <= 60 characters

    Name of the user.

    role

    object

    required

    id stringrequired

    A unique Base58 value identifying this object.

    name stringrequired

    Possible values: <= 255 characters

    Role's name.

    permissions

    object[]

  • Array [

  • id stringrequired

    Possible values: <= 255 characters

    Textual identifier.

    name stringrequired

    Possible values: <= 255 characters

    Permission name.

  • ]

  • custom booleanrequired
    description stringnullable

    Short description.

    scope

    object

    required

    tier stringrequired

    target

    object

    id stringrequired

    A unique Base58 value identifying this object.

    name stringrequired
    url urirequired

    Target URL.

    team

    object

    id stringrequired

    A unique Base58 value identifying this object.

    name stringrequired
  • ]

Loading...