curl --request POST \
--url https://api.example.com/orgs/{org_id}/nodes/{node_id}/branches \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"base_branch": "main"
}
'{
"node_id": "<string>",
"name": "<string>",
"head_commit": "<string>",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"base_branch": "<string>",
"head_commit_message": "<string>",
"last_activity": "2023-11-07T05:31:56Z"
}Create a new branch from an existing branch.
curl --request POST \
--url https://api.example.com/orgs/{org_id}/nodes/{node_id}/branches \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"base_branch": "main"
}
'{
"node_id": "<string>",
"name": "<string>",
"head_commit": "<string>",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"base_branch": "<string>",
"head_commit_message": "<string>",
"last_activity": "2023-11-07T05:31:56Z"
}Successful Response
Response model for branch data.
Node ID
Branch name
Head commit ID
User who created the branch
Creation timestamp
Last update timestamp
Base branch name
Head commit message
Last activity timestamp