Skip to main content
POST
Build a branch in an application's pipeline

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

application_id
string
required

Body

application/json
branch
string
required

The one branch to build: a literal Git branch name, not a pattern.

Maximum string length: 200

Response

A pull request adding the branch was opened (started), or one is already open (already_open)

outcome
enum<string>
required
Available options:
started,
already_open,
already_builds,
application_not_found,
not_on_ankra_pipeline,
no_pipeline_file,
no_push_trigger,
not_editable,
invalid_branch,
credential_unavailable,
commit_failed
message
string
required
branch
string
required
pull_request_url
string
added_to
enum<string>[]

The triggers whose branch lists the opened pull request widens.

Available options:
push,
pull_request