v1beta
Double column
curl
API
CLI

Services /

Start build

Start a new build for the given combined or build service. If given a commit sha, it will build that commit. If given a branch name or pull request ID, it will build the most recent commit from that branch or PR (build services only).

URL parameters

    • project

      string required

      ID of the project

    • service

      string required

      ID of the service

Request attributes

  • object

    • sha

      string

      Commit sha to build.

    • branch

      string

      Branch to build from. If sha is missing, the latest commit of this branch will be built. Only supported by build services.

    • pullRequestId

      number

      ID of a pull request to build from. If sha is missing, the latest commit of this pull request will be built. Only supported by build services.

API
CLI

POST /v1beta/projects/{project}/services/{service}/build

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"sha":"262ed9817b3cad5142fbceabe0c9e371e390d616"}' \
  https://api.northflank.com/v1beta/projects/{project}/services/{service}/build

Example response

200 OK

success

© 2021 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com