Create Or Update
Update role of specified id in request body, or create new if id property not provided
- Http Method
- POST
- End Point
-
/api/roles
- Request Body
-
- Content Type
- application/json
- Example
-
{
"id" : 1 ,"name" : "string" ,"manageProject" : true ,"createChildren" : true ,"managePullRequests" : true ,"manageCodeComments" : true ,"manageIssues" : true ,"accessConfidentialIssues" : true ,"scheduleIssues" : true ,"manageBuilds" : true ,"jobPrivileges" : [ {"jobNames" : "string" ,"manageJob" : true ,"runJob" : true ,"accessLog" : true ,"accessibleReports" : "string"
- Response
- cURL Example
-
$ curl -u <login name>:<password or access token> [email protected] -H "Content-Type: application/json" https://git.crazyhackgut.ru/api/roles