v1
Double column
API
CLI
JS client
API
CLI
JS client

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

Example request

request body

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

Example response

200 OK

The operation was performed successfully.

JSON

{
  "success": true
}

Example response

404 Not Found

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

© 2021 Northflank Ltd. All rights reserved.