{ "opencollection": "1.0.0", "info": { "name": "Sonatype Nexus Repository Manager assets Security management: roles API", "version": "3.91.0-07" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Security management: roles", "type": "folder" }, "items": [ { "info": { "name": "List roles", "type": "http" }, "http": { "method": "GET", "url": "/service/rest/v1/security/roles", "params": [ { "name": "source", "value": "", "type": "query", "description": "The id of the user source to filter the roles by, if supplied. Otherwise roles from all user sources will be returned." } ] }, "docs": "List roles" }, { "info": { "name": "Create role", "type": "http" }, "http": { "method": "POST", "url": "/service/rest/v1/security/roles", "body": { "type": "json", "data": "{}" } }, "docs": "Create role" }, { "info": { "name": "Get role", "type": "http" }, "http": { "method": "GET", "url": "/service/rest/v1/security/roles/:id", "params": [ { "name": "source", "value": "", "type": "query", "description": "The id of the user source to filter the roles by. Available sources can be fetched using the 'User Sources' endpoint." }, { "name": "id", "value": "", "type": "path", "description": "The id of the role to get" } ] }, "docs": "Get role" }, { "info": { "name": "Update role", "type": "http" }, "http": { "method": "PUT", "url": "/service/rest/v1/security/roles/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The id of the role to update" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update role" }, { "info": { "name": "Delete role", "type": "http" }, "http": { "method": "DELETE", "url": "/service/rest/v1/security/roles/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The id of the role to delete" } ] }, "docs": "Delete role" } ] } ], "bundled": true }