Skip to navigation

Create a route

View as Markdown
Defines a path on the domain. A route needs at least one target before it resolves.

Authentication

Authorizationstring

API key credential, sent as Key <base64(keyId:secret)>.

Path parameters

domain_idstringRequired

Request

Request body for models.NewRoutePostObject
nicknamestringRequired
slugstringRequired
Path segment the route is served at.
descriptionstringOptional
enabledbooleanOptional
targetStrategyenumOptional
targetStrategyFallbackenumOptional
What to do when no target matches.
Allowed values:
targetStrategySelectorstringOptional
The visitor attribute the strategy selects on.

Response

Created
bodyobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error