v1
Double column
API
CLI
JS client
API
CLI
JS client

POST /v1/projects/{projectId}/jobs/{jobId}/health-checks

Example request

request body

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"healthChecks":[{"protocol":"HTTP","type":"readinessProbe","path":"/health-check","port":3000,"initialDelaySeconds":10,"periodSeconds":60,"timeoutSeconds":1,"failureThreshold":3,"successThreshold":1}]}' \
  https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/health-checks

Example response

200 OK

The operation was performed successfully.

JSON

{
  "success": true
}

© 2021 Northflank Ltd. All rights reserved.