Create branch
Create a branch to try configuration changes or instruction optimization without touching the default branch. Repository write access is required.
POST
/v1/models/{workspace}/{model}/branchesAuthorization
Authorizationstringrequired
Send a Modaic bearer token in the Authorization header.
Path Parameters
workspacestringrequired
User or organization workspace slug.
modelstringrequired
Model repository slug. The caller needs the route-specific repository access.
Body
namestringrequired
Branch name.
sourceRefstring
Commit SHA, tag, or branch to start from. Defaults to the default branch.
Response
branchstringrequired
commitShastring
The new branch's head.
Was this page helpful?