There is no way to specify `allow_force_push` when setting up the protected branches https://docs.gitlab.com/ee/api/protected_branches.html#protect-repository-branches