Updates the geo routing configuration for a geo-routed subdomain.
Required permission
Account > Networking > Subdomains > Update
Path parameters
domain
string requiredName of the domainsubdomain
string requiredName of the subdomain
Request body
- {object}
geoRouting
{object} requiredThe geo routing configuration fields to update.strategy
stringThe geo routing strategy.one ofcontinent, closestrules
[array]- {object}
continents
[array]Continent codes this rule covers (for continent strategy)- stringone ofNA, SA, EU, AF, AS, OC, AN
backend
{object} requiredid
string requiredBackend reference in format {projectInternalId}/{serviceInternalId}pattern^[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+$port
string requiredPort name on the backend servicedefaultBackend
{object}id
string requiredBackend reference in format {projectInternalId}/{serviceInternalId}pattern^[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+$port
string requiredPort name on the backend service
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
PATCH /v1/domains/{domain}/subdomains/{subdomain}/geo-routing
PATCH /v1/teams/{teamId}/domains/{domain}/subdomains/{subdomain}/geo-routing
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PATCH \
--data '{"geoRouting":{"rules":[{"backend":{"id":"my-project/my-service","port":"http"}}],"defaultBackend":{"id":"my-project/my-service","port":"http"}}}' \
https://api.northflank.com/v1/domains/{domain}/subdomains/{subdomain}/geo-routingExample response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}