v1beta
Double column
curl
API
CLI
API
CLI

POST /v1beta/projects/{project}/services/{service}/ports

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"ports":[{"name":"port-1","internalPort":12345,"public":true,"domains":["app.example.com"],"protocol":"HTTP"}]}' \
  https://api.northflank.com/v1beta/projects/{project}/services/{service}/ports

Example response

200 OK

success

Example response

404 Not Found

One of the provided domains has not been registered to this account.

© 2021 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com