-werners-
Esteemed Contributor III

Data Factory will take the branch which was set by the Databricks Web UI.

So you can go using the REST API, but what we do is just use different folders.

You can create folders in the REPOS and under each folder you can select another branch.

(f.e. your own user folder for dev, and another one for production/QA etc)