Create Branch

Creates a new branch with the specified name diverging from the main branch's head commit of your prompt.

Path parameters

aliasstringRequired
The unique alias of the prompt.

Headers

CONFIDENT_API_KEYstringRequired
The API key of your Confident AI project.

Request

branchstringRequired
The unique name of the branch to create in the prompt.

Response

successboolean
This is true if the prompt branch was successfully created.
dataobject
deprecatedboolean
This is true if this endpoint is deprecated.