How can I apply branch protection rule in three branch using GitHub API with single rule

HI,

Currently I am applying branch protection rule using GitHub UI and applying three branch with single rule like [br1,br2,br3]* but now I want to apply branch protection rule using GitHub API.

I got below solution but this will add branch protection in single branch but in my case i have to create 3 rule for each branch.

curl -X PUT -u : -H “Accept: application/vnd.github.luke-cage-preview+json” https://api.github.com/repos///branches/br1/protection -d ‘{“required_status_checks”: null,“enforce_admins”: null,“required_pull_request_reviews” : {“dismissal_restrictions”: {},“dismiss_stale_reviews”: false,“require_code_owner_reviews”: true,“required_approving_review_count”: 1},“restrictions”:null}’

so I want to know how can I apply branch protection rule in three branch using GitHub API with single rule.

Thank you in advance for your help !