Skip to main content

Create Role

POST 

/organizations/:organizationId/roles

Create Role

Request

Path Parameters

    organizationId stringrequired

    The ID of the organization where the role is to be created.

Body

required
    name stringrequired

    The name of the role.

    description string

    The description of the role.

    policies object[]required

    The policies associated with the role. Each policy defines actions, effects, and resources.

  • Array [
  • ]

Responses

Schema
    data objectrequired

    Data of the created role including its ID, description, policies, and timestamps.

    id stringrequired
    description stringrequired
    policies object[]required
  • Array [
  • resources string[]required
    actions string[]required
    effect stringrequired
  • ]
  • createdBy stringrequired
    createdAtDateString stringrequired
    createdAt numberrequired
    updatedAtDateString stringrequired
    updatedAt numberrequired
Loading...