Sonatype · Capability
Sonatype Lifecycle Public REST API — Roles
Sonatype Lifecycle Public REST API — Roles. 6 operations. Lead operation: Roles. Self-contained Naftiko capability covering one Sonatype business surface.
What You Can Do
GET
Getroles
— Use this method to view the role IDs, role names and descriptions.
/v1/api/v2/roles
POST
Addrole
— Use this method to create a new custom role with specified permissions.
/v1/api/v2/roles
GET
Gettemplatefornewrole
— Use this method to retrieve a template for creating a new custom role, including all available permissions that can be assigned.
/v1/api/v2/roles/new
DELETE
Deleterole
— Use this method to delete a custom role.
/v1/api/v2/roles/{roleid}
GET
Getrolebyid
— Use this method to retrieve details for a specific role, including its permissions.
/v1/api/v2/roles/{roleid}
PUT
Updaterole
— Use this method to update an existing custom role and its permissions.
/v1/api/v2/roles/{roleid}
MCP Tools
use-this-method-view-role
Use this method to view the role IDs, role names and descriptions.
read-only
idempotent
use-this-method-create-new
Use this method to create a new custom role with specified permissions.
use-this-method-retrieve-template
Use this method to retrieve a template for creating a new custom role, including all available permissions that can be assigned.
read-only
idempotent
use-this-method-delete-custom
Use this method to delete a custom role.
idempotent
use-this-method-retrieve-details
Use this method to retrieve details for a specific role, including its permissions.
read-only
idempotent
use-this-method-update-existing
Use this method to update an existing custom role and its permissions.
idempotent