{
"pattern": "example.net/*",
"script": "this-is_my_script-01"
}
curl --location --request PUT 'https://api.cloudflare.com/client/v4/zones//workers/routes/' \
--header 'Content-Type: application/json' \
--data-raw '{
"pattern": "example.net/*",
"script": "this-is_my_script-01"
}'
{
"errors": [],
"messages": [],
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"pattern": "example.net/*",
"script": "this-is_my_script-01"
},
"success": true
}