IAM Roles

IAM Roles

List all roles in an organization with pagination

get
Authorizations
Path parameters
organizationIdstringRequired

ID of the organization

Query parameters
pageintegerOptional

Page number for pagination

Default: 1
per_pageintegerOptional

Number of roles per page

Default: 15
Responses
200

List of roles

application/json
get
/api/organizations/{organizationId}/iam-roles

Create a new role in an organization

post
Authorizations
Path parameters
organizationIdstringRequired

ID of the organization

Body
namestringRequired

Name of the role

descriptionstring | nullableOptional

Description of the role

policiesinteger[]Optional

List of policy IDs to attach to the role

Responses
post
/api/organizations/{organizationId}/iam-roles

Delete a role in an organization

delete
Authorizations
Path parameters
organizationIdintegerRequired

ID of the organization

roleIdintegerRequired

ID of the role to delete

Responses
delete
/api/organizations/{organizationId}/iam-roles/{roleId}

No content

Update an existing role

patch
Authorizations
Path parameters
organizationIdstringRequired

ID of the organization

roleIdintegerRequired

ID of the role

Body
namestringOptional

Name of the role

Example: Manager
descriptionstring | nullableOptional

Description of the role

Example: Role with management privileges
policiesinteger[]Optional

List of policy IDs to sync with the role

Responses
200

Role updated successfully

application/json
patch
/api/organizations/{organizationId}/iam-roles/{roleId}

Last updated