Infraon API Guide
Product DocsSchemaAuthentication
  • Welcome
    • Base URL
    • Authorization
    • Responses
  • Modules
    • Schema
    • Authentication
    • Announcement
    • API Registration
    • Async Tasks
    • BusinessRule
    • BusinessServiceConfiguration
    • Service Catalogue
    • CMDBBlacklistWhitelist
    • CMDBCategory
    • CMDBConsumables
    • Ux
    • CMDBSoftwareLicense
    • Cmdb
    • CMDBRelation
    • CMDBSoftware
    • ContractManagement
    • Department
    • Events
    • Field Configuration
    • IMACD
    • Knowledge Base
    • Leaves
    • Chat
    • Marketplace
    • APIViewSet
    • BeepViewSet
    • SMSviewset
    • Suppressedviewset
    • Organization Location
    • Partner
    • Predicted Events
    • Requester
    • Service Feasibility Requests
    • Role Profile
    • Tag
    • Service_outage
    • Teams
    • Telecom Settings
    • Trap Configurations
    • User Profile
    • Vendor Managemment
    • Association Events
    • Device Template
    • Discovery Configuration
    • Jobs
    • MIB Explorer
    • Seasonal Events
    • IPAM
    • Log Grok Pattern Configuration
    • Log Pipeline Configuration
    • Log Integraion
    • Log Search
    • CLI Download Jobs
    • Configuration Profiles
    • Configuration Policies
    • Configuration Rules
    • Configuration Search
    • Configuration Template
    • Configuration Trigger
    • Jobs Account Audit
    • Manage Vulnerabilities
    • OS Image Download
    • Rule Group
    • Configuration Upload Jobs
    • Work Flow Jobs
    • Change
    • Checklist
    • Incident
    • Problem
    • Release
    • Request Process
    • Task
    • Models
Powered by GitBook
On this page
  1. Modules

Role Profile

PreviousService Feasibility RequestsNextTag

Gets a role profile with the given id

get

This endpoint is used to fetch a role in the current organization

Authorizations
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /ux/common/roles/profile/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "role_name": "text",
  "description": "text",
  "group_id": 1,
  "organization": "text",
  "is_pre_configure": true,
  "role_type": 1,
  "event_map": "text",
  "last_update_time": "2025-06-07T17:49:00.841Z"
}

Deletes the role with given id

delete

This endpoint is used to delete an existing role for the current organization

Authorizations
Path parameters
idstringRequired
Responses
204
No response body
delete
DELETE /ux/common/roles/profile/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

Gets the module role map

get

This endpoint is used to get all module role map for the current organization

Authorizations
Responses
200Success
application/json
get
GET /ux/common/roles/profile/config/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "role_name": "text",
  "description": "text",
  "group_id": 1,
  "organization": "text",
  "is_pre_configure": true,
  "role_type": 1,
  "event_map": "text",
  "last_update_time": "2025-06-07T17:49:00.841Z"
}
get

API endpoint that allows users to be viewed or edited.

Authorizations
Responses
200Success
application/json
get
GET /ux/common/roles/profile/json/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "role_name": "text",
  "description": "text",
  "group_id": 1,
  "organization": "text",
  "is_pre_configure": true,
  "role_type": 1,
  "event_map": "text",
  "last_update_time": "2025-06-07T17:49:00.841Z"
}

Get the options for the events options

get

This endpoint is used to get the default options for events options

Authorizations
Responses
200Success
application/json
get
GET /ux/common/roles/profile/options/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "role_name": "text",
  "description": "text",
  "group_id": 1,
  "organization": "text",
  "is_pre_configure": true,
  "role_type": 1,
  "event_map": "text",
  "last_update_time": "2025-06-07T17:49:00.841Z"
}
  • GETGets a list of role profiles
  • POSTCreates a new role
  • GETGets a role profile with the given id
  • PUTEdits the role with given id
  • DELETEDeletes the role with given id
  • GETGets the module role map
  • GET/ux/common/roles/profile/json/
  • GETGet the options for the events options

Gets a list of role profiles

get

This endpoint is used to fetch all the role profiles in the current organization (works based on token used to authorize)

Authorizations
Responses
200Success
application/json
get
GET /ux/common/roles/profile/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
[
  {
    "role_name": "text",
    "description": "text",
    "group_id": 1,
    "organization": "text",
    "is_pre_configure": true,
    "role_type": 1,
    "event_map": "text",
    "last_update_time": "2025-06-07T17:49:00.841Z"
  }
]

Creates a new role

post

This endpoint is used to save a new role for the current organization

Authorizations
Body
Other propertiesanyOptional
Responses
201
No response body
post
POST /ux/common/roles/profile/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 190

{
  "role_name": "Requester",
  "description": "User can have access only to requester portal",
  "selected_permissions": {
    "General": {
      "organization": {
        "view": true,
        "add": true,
        "edit": true,
        "delete": true
      }
    }
  }
}
201

No response body

No content

Edits the role with given id

put

This endpoint is used to edit an existing role for the current organization

Authorizations
Path parameters
idstringRequired
Body

Serializes groups querysets.

role_namestring | nullableOptional
descriptionstring | nullableOptional
group_idintegerOptional
organizationstring · max: 25Required
is_pre_configurebooleanOptional
role_typeintegerOptionalDefault: 1
event_mapstringRead-onlyRequired
last_update_timestring · date-timeOptional
Responses
200Success
application/json
put
PUT /ux/common/roles/profile/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 160

{
  "role_name": "text",
  "description": "text",
  "group_id": 1,
  "organization": "text",
  "is_pre_configure": true,
  "role_type": 1,
  "last_update_time": "2025-06-07T17:49:00.841Z"
}
200Success
{
  "role_name": "text",
  "description": "text",
  "group_id": 1,
  "organization": "text",
  "is_pre_configure": true,
  "role_type": 1,
  "event_map": "text",
  "last_update_time": "2025-06-07T17:49:00.841Z"
}