v1
Double column
API
CLI
JS Client
API
CLI
JS Client

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

Example request

Request body

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"runtimeEnvironment":{"variable1":"abcdef","variable2":"12345"},"deployment":{"docker":{"cmd":"nginx -g"}}}' \
  https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/runs

Example response

200 OK

Details about the new job run.

JSON

{
  "data": {
    "id": "d34582a4-35bd-4c71-8e7c-e36999b88723",
    "runName": "example-job-5fcf67bc56e1913e21d49504"
  }
}

© 2021 Northflank Ltd. All rights reserved.