use branch-id in the REST api