Ensure Route
Request
curl -X 'PUT' \
'https://apigateway.de-txl.ionos.com/gateways/0620c174-dd3c-5eb4-87c8-e2b516553a00/routes/50982018-bb17-5cb9-bcd4-97f8bbc7dc23' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"id": "50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
"metadata": {},
"properties": {
"name": "example-route",
"type": "http",
"paths": [
"/foo/*",
"/bar"
],
"methods": [
"GET",
"POST"
],
"websocket": false,
"upstreams": [
{
"scheme": "http",
"loadbalancer": "roundrobin",
"host": "www.example.com",
"port": 80,
"weight": 100
}
]
}
}'Response
Last updated
Was this helpful?