Get Branch Protection
- Http Method
- GET
- End Point
-
/~api/renovate/repos/{ownerName}/{repoName}/branches/{branch:.*}/protection
Placeholder Description Example {ownerName} Owner Name string {repoName} Repo Name string {branch} Branch 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> https://git.codedune.app/~api/renovate/repos/string/string/branches/string/protection