Resources Repository Set Default Branch
🤬
Set Default Branch
Set default branch
Http Method
POST
End Point
/~api/repositories/{projectId}/default-branch
Placeholder Description Example
{projectId} Project Id 1
Request Body
Content Type
application/json
Example
"string"
Response
Operation Successful
Status Code
200
Response Body
No response body
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://crash.software/~api/repositories/1/default-branch
Please wait...
Page is in error, reload to recover