Double column
curl
API
CLI

Services /

Update Build Options

Updates the build options for a given service.

URL parameters

    • project

      string required

      ID of the project

    • service

      string required

      ID of the service

Request attributes

  • object

    • dockerWorkDir

      string

      The working directory of the Dockerfile.

      pattern: ^\/([a-zA-Z0-9-.]+\/)*[a-zA-Z0-9-.]*$

    • dockerFilePath

      string

      The file path of the Dockerfile.

      pattern: ^\/([a-zA-Z0-9-.]+\/)*[a-zA-Z0-9-.]+$

    • prRestrictions

      array

      • string

        pattern: ^[a-zA-Z/*0-9-]*$

    • branchRestrictions

      array

      • string

        pattern: ^[a-zA-Z/*0-9-]*$

API
CLI

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

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"dockerWorkDir":"/","dockerFilePath":"/Dockerfile","prRestrictions":["feature/*"],"branchRestrictions":["feature/*"]}' \
  https://api.northflank.com/v1beta/projects/{project}/services/{service}/build-options

Example response

200 OK

success

© 2020 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com