Create a Role
Create a new custom policy role for a specific policy type. System-defined roles cannot be created via this endpoint.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
CreatePolicyRoleRequestData
The policy type that this role applies to
directory_attribute, google_workspace_group, okta_group The ID of the integration that this role is associated with (polymorphic)
The type of the integration that this role is associated with (polymorphic)
Title Case human readable name
63alpha-dash string that is similar to the name or uses shorthand abbreviations. If not set, the name will be converted to alpha-dash format
55The vendor-specific name or ID used in API queries
255Sort order for display purposes. Lower numbers appear first
10
Response
PolicyRoleDetailedResponseData
"porol_01hq8xyzabc123def456ghi789"
The policy type that this role applies to
directory_attribute, google_workspace_group, okta_group The ID of the integration that this role is associated with (polymorphic)
The type of the integration that this role is associated with (polymorphic)
Title Case human readable name
alpha-dash string that is similar to the name or uses shorthand abbreviations
The vendor-specific name or ID used in API queries
Sort order for display purposes. Lower numbers appear first
10
Whether this is a system-defined role (true) or user-created (false)
true
Count of related records.
This is empty for now but reserved for future use and consistency with API patterns
1The timestamps for the role record
API hyperlinks related to the role record