Reference
Create branch
Forks a branch, or makes an empty one. A fork copies no data.
POST
bearerheader
AuthorizationBearer <token>namespace*stringA namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.
application/json- body
name*stringMatch
^[A-Za-z0-9_-][A-Za-z0-9._-]*(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$Length
length <= 200from?stringThe branch to fork. Without it, the new branch is empty.
Match
^[A-Za-z0-9_-][A-Za-z0-9._-]*(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$Length
length <= 200at?stringFork this older commit of from instead of its head.
Match
^[0-9a-f]{64}$withIndex?booleanAlso fork the linked index, from its version that matches the fork's commit, and keep it up with this branch. Needs from and a namespace with a linked index.
The new branch's head.
application/json- response
head*stringcurl -X POST 'https://example.com/v1/namespaces/string/branches' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "head": "string"}