curl --request POST \
--url http://localhost:8080/api/v2/environments/{environmentKey}/branches \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>"
}'
{
"key": "<string>",
"name": "<string>",
"default": true,
"configuration": {
"ref": "<string>",
"directory": "<string>",
"remote": "<string>",
"base": "<string>",
"scm": "SCM_UNKNOWN"
}
}Branches
Create Branch
Create a new branch in an environment.
POST
/
api
/
v2
/
environments
/
{environmentKey}
/
branches
curl --request POST \
--url http://localhost:8080/api/v2/environments/{environmentKey}/branches \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>"
}'
{
"key": "<string>",
"name": "<string>",
"default": true,
"configuration": {
"ref": "<string>",
"directory": "<string>",
"remote": "<string>",
"base": "<string>",
"scm": "SCM_UNKNOWN"
}
}curl --request POST \
--url http://localhost:8080/api/v2/environments/{environmentKey}/branches \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"key": "<key>"
}'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The environment identifier, e.g. 'production/branch'.
Body
application/json
Was this page helpful?