Added method to protect a branch in from the API