Get
Http Method
GET
End Point
/api/roles/{roleId}
Placeholder Description Example
{roleId} Role Id 1
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
{
"id" : 1 ,
"name" : "string" ,
"manageProject" : true ,
"createChildren" : true ,
"managePullRequests" : true ,
"manageCodeComments" : true ,
"codePrivilege" : "NONE" ,
"manageIssues" : true ,
"scheduleIssues" : true ,
"editableIssueFields" : {
"@type" : "AllIssueFields"
}
,
"manageBuilds" : true ,
"jobPrivileges" : [ {
"jobNames" : "string" ,
"manageJob" : true ,
"runJob" : true ,
"accessLog" : true ,
"accessibleReports" : "string"
}
]
}
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> https://code.onedev.io/api/roles/1
Please wait...
Page is in error, reload to recover