v1beta
Double column
curl
API
CLI
API
CLI

POST /v1/projects/{project}/services/build

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"name":"Example Service","description":"A service description","billing":{"deploymentPlan":"nf-compute-20"},"vcsData":{"projectUrl":"https://github.com/northflank/gatsby-with-northflank","projectType":"github","dockerFilePath":"/Dockerfile","dockerWorkDir":"/"},"buildConfiguration":{"branchRestrictions":[null],"prRestrictions":[null]},"buildArguments":{"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"}}' \
  https://api.northflank.com/v1/projects/{project}/services/build

Example response

200 OK

Details about the newly created service.

JSON

{
  "id": "new-service",
  "serviceType": "build",
  "name": "New Service",
  "description": "This is a new service."
}

Example response

409 Conflict

There is already a service with the same derived identifier

© 2021 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com