v1
Double column
API
CLI
JS client
API
CLI
JS client

POST /v1/projects/{projectId}/jobs/{jobId}/deployment

Example request

request body

internal

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"internal":{"id":"build-service","buildSHA":"latest","branch":"master"}}' \
  https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/deployment

OR

external

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"external":{"imagePath":"nginx:latest","credentials":"example-credentials"}}' \
  https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/deployment

Example response

200 OK

success

© 2021 Northflank Ltd. All rights reserved.