Domains /
Add subdomains
API
CLI
POST /v1beta/domains/{domain}/subdomains
Example request
request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"subdomains":["site"]}' \
https://api.northflank.com/v1beta/domains/{domain}/subdomains
Example response
200 OK
success
Example response
400 Bad Request
The subdomain is not valid (possibly because it is too long) or the domain has not been verified.
Example response
409 Conflict
The subdomain has already been added to this domain.