v1
Double column
API
CLI
JS Client
API
CLI
JS Client

POST /v1/projects/{projectId}/services/{serviceId}/deployment

Example request

Request body

An external deployment

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}/services/{serviceId}/deployment

OR

An internal deployment

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

Example response

200 OK

The operation was performed successfully.

JSON

{
  "data": {}
}

© 2021 Northflank Ltd. All rights reserved.