Create a branch
POST https://{{base_url}}/v3/stacks/branches
The Create a branch request creates a new branch in a particular stack of your organization.
To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken.Â
Read more about it in Authentication.
For more information, refer to the Create a branch API Reference document
Request Body
{"branch"=>{"uid"=>"release", "source"=>"main"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter the API key of the stack. | |
authtoken | string | Enter your auth token. | |
Content-Type | string | Enter "application/json" to pass a Request body. |