How to create a branch from tag/commit via api?

hello, we have a problem with repoCreateBranch parameters, the repoCreateBranch api only can create branch from a old branch(old_branch_name), but can not create branch from tag/commit, is there any suggestion for this? thanks!