Roles
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
GET /api/v1/roles_and_permissions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful Response
No content
Enter your JWT token (without 'Bearer ' prefix)
falsefalsefalsetrueSuccessful Response
Validation Error
POST /api/v1/roles_and_permissions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 353
{
"role_name": "text",
"description": "text",
"created_by": "text",
"can_submit_agent": false,
"can_create_background_job": false,
"can_view_agent_trace": false,
"options": [
{
"entity_name": "text",
"entity_type": "LLMs",
"entity_id": 1
}
],
"nav_permission": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"action_permission": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"is_editable": true
}{
"role_id": 1,
"role_name": "text",
"description": "text",
"created_by": "text",
"can_submit_agent": true,
"can_create_background_job": true,
"can_view_agent_trace": true,
"options": [
{
"entity_name": "text",
"entity_type": "LLMs",
"entity_id": 1
}
],
"is_editable": true
}Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
GET /api/v1/roles_and_permissions/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"role_id": 1,
"role_name": "text",
"description": "text",
"created_by": "text",
"can_submit_agent": true,
"can_create_background_job": true,
"can_view_agent_trace": true,
"options": [
{
"entity_name": "text",
"entity_type": "LLMs",
"entity_id": 1
}
],
"is_editable": true
}Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
PUT /api/v1/roles_and_permissions/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 215
{
"role_name": "text",
"can_submit_agent": true,
"can_create_background_job": true,
"can_view_agent_trace": true,
"options": [
{
"entity_name": "text",
"entity_type": "LLMs",
"entity_id": 1
}
],
"is_editable": true,
"description": "text"
}{
"role_id": 1,
"role_name": "text",
"description": "text",
"created_by": "text",
"can_submit_agent": true,
"can_create_background_job": true,
"can_view_agent_trace": true,
"options": [
{
"entity_name": "text",
"entity_type": "LLMs",
"entity_id": 1
}
],
"is_editable": true
}Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
DELETE /api/v1/roles_and_permissions/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get all active custom agents for UI dropdowns.
Used when creating/editing roles to show available CustomAgents options.
Returns: List of active custom agents with basic info
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
GET /api/v1/roles_and_permissions/custom_agents HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful Response
No content
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
POST /api/v1/roles_and_permissions/reassign_users?to_role_id=1 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59
[
{
"entity_name": "text",
"entity_type": "LLMs",
"entity_id": 1
}
]No content
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
GET /api/v1/roles_and_permissions/get_role_by_username/{username} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
GET /api/v1/roles_and_permissions/get_users_by_role/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get custom agents assigned to a specific role.
Args: role_id: Role ID to get assigned agents for
Returns: List of custom agents assigned to the role
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
GET /api/v1/roles_and_permissions/custom_agents/{role_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
