{ "opencollection": "1.0.0", "info": { "name": "openobserve Actions Roles API", "version": "0.90.0" }, "items": [ { "info": { "name": "Roles", "type": "folder" }, "items": [ { "info": { "name": "List organization roles", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/:org_id/roles", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "Organization name" } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Retrieves a list of all roles available in the organization, including both standard predefined roles and custom roles. Users will only see roles they have permissions to view when role-based access control is active. Requires enterprise features to be enabled." }, { "info": { "name": "Create custom role", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/:org_id/roles", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "Organization name" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Creates a new custom role with specified permissions and capabilities. Custom roles allow fine-grained access control beyond the standard predefined roles. Requires enterprise features to be enabled." }, { "info": { "name": "Update role permissions", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/:org_id/roles/:role_id", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "Organization name" }, { "name": "role_id", "value": "", "type": "path", "description": "Role Id" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Updates an existing role by adding or removing permissions and users. Allows modification of role capabilities and user assignments to maintain proper access control. Standard roles cannot be modified. Requires enterprise features to be enabled." }, { "info": { "name": "Delete custom role", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/:org_id/roles/:role_id", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "Organization name" }, { "name": "role_id", "value": "", "type": "path", "description": "Role Id" } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Permanently removes a custom role from the organization. Users and groups assigned to this role will lose the associated permissions. Standard predefined roles cannot be deleted. Requires enterprise features to be enabled." }, { "info": { "name": "Get role permissions for resource", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/:org_id/roles/:role_id/permissions/:resource", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "Organization name" }, { "name": "role_id", "value": "", "type": "path", "description": "Role Id" }, { "name": "resource", "value": "", "type": "path", "description": "resource" } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Retrieves detailed permissions that a specific role has on a particular resource type. Useful for understanding access control capabilities and auditing role assignments. Requires enterprise features to be enabled." }, { "info": { "name": "Get users assigned to role", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/:org_id/roles/:role_id/users", "params": [ { "name": "org_id", "value": "", "type": "path", "description": "Organization name" }, { "name": "role_id", "value": "", "type": "path", "description": "Role Id" } ], "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "docs": "Retrieves a list of all users who are currently assigned to a specific role. Useful for role management, auditing user permissions, and understanding access control assignments. Requires enterprise features to be enabled." } ] } ], "bundled": true }