Skip to main content
PATCH
Update a Role

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

role
string
required

Policy Role ID

Body

application/json

UpdatePolicyRoleRequestData

name
string

Title Case human readable name

Maximum string length: 63
handle
string

alpha-dash string that is similar to the name or uses shorthand abbreviations. If not set, the name will be converted to alpha-dash format

Maximum string length: 55
integration_reference
string

The vendor-specific name or ID used in API queries

Maximum string length: 255
sort_order
integer | null

Sort order for display purposes. Lower numbers appear first

Example:

10

Response

PolicyRoleDetailedResponseData

id
string
required
Example:

"porol_01hq8xyzabc123def456ghi789"

policy_type
enum<string>
required

The policy type that this role applies to

Available options:
directory_attribute,
google_workspace_group,
okta_group
integration_id
string | null
required

The ID of the integration that this role is associated with (polymorphic)

integration_type
string | null
required

The type of the integration that this role is associated with (polymorphic)

name
string
required

Title Case human readable name

handle
string
required

alpha-dash string that is similar to the name or uses shorthand abbreviations

integration_reference
string | null
required

The vendor-specific name or ID used in API queries

sort_order
integer | null
required

Sort order for display purposes. Lower numbers appear first

Example:

10

is_imported
boolean
required

Whether this is a system-defined role (true) or user-created (false)

Example:

true

count
string[]
required

Count of related records.

This is empty for now but reserved for future use and consistency with API patterns

Minimum array length: 1
timestamp
TimestampBasicData · object
required

The timestamps for the role record

API hyperlinks related to the role record

Example: