Create a new branch by cloning an existing branch.
Authentication: required
Required API Scope: Instance Workspace: Update
curl --request POST \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/branch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_branch": "v1",
"label": "feature-branch",
"description": "A new feature branch",
"color": "#ebc346"
}
'{
"created_at": "2023-06-22 22:59:11+0000",
"label": "v1",
"live": true,
"backup": "false"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?
curl --request POST \
--url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/branch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_branch": "v1",
"label": "feature-branch",
"description": "A new feature branch",
"color": "#ebc346"
}
'{
"created_at": "2023-06-22 22:59:11+0000",
"label": "v1",
"live": true,
"backup": "false"
}