Skip to main content

Update Role

PUT 

/organizations/:organizationId/roles/:roleId

Update Role

Request

Path Parameters

    organizationId stringrequired

    The ID of the organization where the role is located.

    roleId stringrequired

    The ID of the role to update.

Body

required
    name string

    The new name of the role, if updating.

    description string

    The new description of the role, if updating.

    policies object[]

    The new policies for the role, if updating.

  • 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...