Domains /
Assign service to subdomain
Assigns a service port to the given subdomain
URL parameters
domain
string required
Name of the domain
subdomain
string required
Name of the subdomain
Request attributes
object
projectId
string required
pattern^[A-Za-z0-9-]+$serviceId
string required
pattern^[A-Za-z0-9-]+$port
string required
pattern^[A-Za-z0-9-]+$
API
CLI
POST /v1beta/domains/{domain}/subdomains/{subdomain}/assign
Example request
request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{}' \
https://api.northflank.com/v1beta/domains/{domain}/subdomains/{subdomain}/assign
Example response
200 OK
success