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 ,"manageIssues" : true ,"accessConfidentialIssues" : true ,"scheduleIssues" : true ,"manageBuilds" : true ,"uploadCache" : true ,"jobPrivileges" : [ {"jobNames" : "string" ,"manageJob" : true ,"runJob" : true ,"accessLog" : true ,"accessPipeline" : true ,"accessibleReports" : "string"
- Response
- 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