Resources Role Create
Create
Create new role
Http Method
POST
End Point
/~api/roles
Request Body
Content Type
application/json
Example
{
"name" : "string" ,
"manageProject" : true ,
"createChildren" : true ,
"managePullRequests" : true ,
"manageCodeComments" : true ,
"codePrivilege" : "NONE" ,
"packPrivilege" : "NONE" ,
"manageIssues" : true ,
"accessConfidentialIssues" : true ,
"scheduleIssues" : true ,
"editableIssueFields" : {
"@type" : "AllIssueFields"
}
,
"manageBuilds" : true ,
"uploadCache" : true ,
"jobPrivileges" : [ {
"jobNames" : "string" ,
"manageJob" : true ,
"runJob" : true ,
"accessLog" : true ,
"accessPipeline" : true ,
"accessibleReports" : "string"
}
]
}
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
1
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> -X POST [email protected] -H "Content-Type: application/json" https://git.codedune.app/~api/roles
Please wait...
Page is in error, reload to recover