Roles
Roles are stereotypes for project roles. You must first define the role stereotype, before you can instantiate a role in project. Roles have URIs of the form: /role/{id}or /role/{name}, where {id} is the internal unique role id/number and {name} is the unique role name.
Get the role schema 
GET /role/schema
Get all defined role stereotypes 
GET /roles
Define a new role stereotype 
POST /role
The request body must contain a valid role object with a unique name and an optional description, e.g.:
{
"name": "Tester",
"description": "Testers of the REST API"
}
Update the description of a role stereotype 
PUT /role
The request body must contain the role URI and the new role description, e.g.:
{
"uri": "/role/Tester",
"description": "Testers of the REST API"
}
Please note: The name of role stereotypes cannot be changed.
Delete an unused role stereotype 
DELETE {roleURI}
Please note: You can only delete role stereotypes, as long as no project roles with this stereotype exist.
Get a role stereotype definition 
GET {roleURI}
Was this helpful?