Skip to content

Unprotect repository branches

DELETE
/api/v4/groups/{id}/protected_branches/{name}

Unprotects a specified protected branch Unprotect multiple branches by using a wildcard in the name.

id
required
string

The ID or URL-encoded path of a group

name
required
string

The name of the protected branch

Example
main

No Content

Bad Request

401 Unauthorized

404 ProtectedBranch Not Found