latestOpenAPI 3.0.02026-08-0819201.1 MB
411f9f98c01e
contracts
Lists all roles for a specified contract
You need to be a member of the Contract’s scope to access this resource
get/contracts/{contract_id}/roles
Path parameters
contract_idstring required
Contract identifier
Response
OK
Example response
{
"data": {
"id": "5b4f337bff4304610483ba67",
"attributes": {
"roles": [
{
"i18n": {
"en": "Admin"
},
"role": "admin",
"permissions": [
"contracts.workspace.create",
"contracts.workspace.listAll",
"contracts.workspace.delete",
"contracts.repository.edit",
"contracts.devTeam.edit",
"global.auth_clients.create",
"global.auth_clients.get",
"global.auth_clients.edit",
"global.auth_clients.delete"
],
"scope": "contracts"
}
]
},
"relationships": {
"tenant": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/tenants/5b4f337bff4304610483ba67\""
}
}
}
}
}