Roles
The Roles API allows administrators to define and manage roles within the NVIDIA Run:ai platform. A role represents a collection of permission sets that determine what actions can be performed across NVIDIA Run:ai resources. NVIDIA Run:ai provides a list of predefined roles that cover common operational needs, such as managing workloads, projects, or data and storage. Administrators can also use this API to create custom roles by combining specific permission sets to match their organization's access model.
Use to retrieve a list of roles. This endpoint is deprecated and will be removed in a future release. Use GET /api/v2/authorization/roles instead.
Bearer authentication
Executed successfully.
32user@run.aitrueadmincan manage all resourcestrueBad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/authorization/roles HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"custom": true,
"effectiveEnabled": true,
"permissions": [
{
"resourceType": "department",
"displayName": "Projects",
"groupId": "organization",
"actions": [
"create"
]
}
],
"name": "admin",
"description": "can manage all resources",
"enabled": true,
"kubernetesPermissions": {
"predefinedRole": "12"
}
}
]Retrieve the details of a role by id. This endpoint is deprecated and will be removed in a future release. Use GET /api/v2/authorization/roles/{roleIdPath} instead.
Bearer authentication
The ID of the role
32Executed successfully.
32user@run.aitrueadmincan manage all resourcestrueBad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/authorization/roles/{roleIdPath} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"custom": true,
"effectiveEnabled": true,
"permissions": [
{
"resourceType": "department",
"displayName": "Projects",
"groupId": "organization",
"actions": [
"create"
]
}
],
"name": "admin",
"description": "can manage all resources",
"enabled": true,
"kubernetesPermissions": {
"predefinedRole": "12"
}
}Retrieves a list of all available roles, including both NVIDIA Run:ai predefined roles and custom roles. Use this endpoint to review role configurations, permission sets and permissions.
Bearer authentication
The maximum number of entries to return.
50The offset of the first item returned in the collection.
100Sort results in descending or ascending order.
ascPossible values: Sort results by a parameter.
Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.
["name!=some-access-rule-name","createdAt>=2023-01-01T00:00:00Z"]Filter results by a free text search.
test projectExecuted successfully.
1Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v2/authorization/roles HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"roles": [
{
"name": "admin",
"description": "can manage all resources",
"scopeType": "tenant",
"scopeId": "text",
"enabled": true,
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test"
}
],
"kubernetesPermissions": {
"predefinedRole": "12"
},
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"effectiveEnabled": true,
"deprecated": true,
"permissions": [
{
"resourceType": "department",
"actions": [
"create"
]
}
]
}
],
"next": 1
}Creates a custom role with the specified permission sets.
Bearer authentication
The name of the role to create. Must be unique within the given scope.
adminA description of the role.
can manage all resourcesThe type of scope where the role applies. Valid values: system, tenant
tenantPossible values: The ID of the scope where this role is defined.
Specifies whether the role is active. Default: true
trueCreated
The name of the role to create. Must be unique within the given scope.
adminA description of the role.
can manage all resourcesThe type of scope where the role applies. Valid values: system, tenant
tenantPossible values: The ID of the scope where this role is defined.
Specifies whether the role is active. Default: true
trueThe ID of the role.
32The timestamp for when the role was created.
The timestamp for the last time the role was updated.
Identifier of the user who created the role.
user@run.aiIndicates whether the role is effectively enabled in the tenant. This reflects the role’s operational state after considering tenant-level configuration or restrictions. Default: true
trueIndicates whether the role is deprecated. When set to true, the role is considered deprecated and should not be used for new assignments.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
POST /api/v2/authorization/roles HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"name": "admin",
"description": "can manage all resources",
"scopeType": "tenant",
"scopeId": "text",
"enabled": true,
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test"
}
],
"kubernetesPermissions": {
"predefinedRole": "12"
}
}{
"name": "admin",
"description": "can manage all resources",
"scopeType": "tenant",
"scopeId": "text",
"enabled": true,
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test"
}
],
"kubernetesPermissions": {
"predefinedRole": "12"
},
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"effectiveEnabled": true,
"deprecated": true,
"permissions": [
{
"resourceType": "department",
"actions": [
"create"
]
}
]
}Retrieves details for a specific role, including its name, description, scope, and associated permission sets.
Bearer authentication
The ID of the role
32Executed successfully.
The name of the role to create. Must be unique within the given scope.
adminA description of the role.
can manage all resourcesThe type of scope where the role applies. Valid values: system, tenant
tenantPossible values: The ID of the scope where this role is defined.
Specifies whether the role is active. Default: true
trueThe ID of the role.
32The timestamp for when the role was created.
The timestamp for the last time the role was updated.
Identifier of the user who created the role.
user@run.aiIndicates whether the role is effectively enabled in the tenant. This reflects the role’s operational state after considering tenant-level configuration or restrictions. Default: true
trueIndicates whether the role is deprecated. When set to true, the role is considered deprecated and should not be used for new assignments.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v2/authorization/roles/{roleIdPath} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "admin",
"description": "can manage all resources",
"scopeType": "tenant",
"scopeId": "text",
"enabled": true,
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test"
}
],
"kubernetesPermissions": {
"predefinedRole": "12"
},
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"effectiveEnabled": true,
"deprecated": true,
"permissions": [
{
"resourceType": "department",
"actions": [
"create"
]
}
]
}Updates a custom role, including its name, description, or associated permission sets. NVIDIA Run:ai predefined roles cannot be updated.
Bearer authentication
The ID of the role
32The name of the role to create. Must be unique within the given scope.
adminA description of the role.
can manage all resourcesThe type of scope where the role applies. Valid values: system, tenant
tenantPossible values: The ID of the scope where this role is defined.
Specifies whether the role is active. Default: true
trueExecuted successfully.
The name of the role to create. Must be unique within the given scope.
adminA description of the role.
can manage all resourcesThe type of scope where the role applies. Valid values: system, tenant
tenantPossible values: The ID of the scope where this role is defined.
Specifies whether the role is active. Default: true
trueThe ID of the role.
32The timestamp for when the role was created.
The timestamp for the last time the role was updated.
Identifier of the user who created the role.
user@run.aiIndicates whether the role is effectively enabled in the tenant. This reflects the role’s operational state after considering tenant-level configuration or restrictions. Default: true
trueIndicates whether the role is deprecated. When set to true, the role is considered deprecated and should not be used for new assignments.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PUT /api/v2/authorization/roles/{roleIdPath} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"name": "admin",
"description": "can manage all resources",
"scopeType": "tenant",
"scopeId": "text",
"enabled": true,
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test"
}
],
"kubernetesPermissions": {
"predefinedRole": "12"
}
}{
"name": "admin",
"description": "can manage all resources",
"scopeType": "tenant",
"scopeId": "text",
"enabled": true,
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test"
}
],
"kubernetesPermissions": {
"predefinedRole": "12"
},
"id": 32,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "user@run.ai",
"effectiveEnabled": true,
"deprecated": true,
"permissions": [
{
"resourceType": "department",
"actions": [
"create"
]
}
]
}Deletes a custom role. Use this endpoint to permanently remove roles that are no longer needed. NVIDIA Run:ai predefined roles cannot be deleted.
Bearer authentication
The ID of the role
32No Content.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v2/authorization/roles/{roleIdPath} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Enables a specific role. Disabled roles cannot be assigned to users and do not grant any permissions.
Bearer authentication
The ID of the role
32tenantPossible values: No Content.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v2/authorization/roles/{roleIdPath}/enable HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"scopeType": "tenant"
}No content
Disables a specific role. Disabled roles cannot be assigned to users and do not grant any permissions.
Bearer authentication
The ID of the role
32tenantPossible values: No Content.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v2/authorization/roles/{roleIdPath}/disable HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"scopeType": "tenant"
}No content
Last updated