?validate_only=true
as an optional query parameter to run validation only without persisting changes.{}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//magic/routes' \
--header 'Content-Type: application/json' \
--data-raw '{}'
{
"errors": [],
"messages": [],
"result": {
"routes": [
{
"created_on": "2017-06-14T00:00:00Z",
"description": "New route for new prefix 203.0.113.1",
"id": "c4a7362d577a6c3019a474fd6f485821",
"modified_on": "2017-06-14T05:20:00Z",
"nexthop": "203.0.113.1",
"prefix": "192.0.2.0/24",
"priority": 0,
"scope": {
"colo_names": [
"den01"
],
"colo_regions": [
"APAC"
]
},
"weight": 0
}
]
},
"success": true
}