curl --request POST \
--url https://api.kinsta.com/v2/sites/environments/{env_id}/redirect-rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action_type": "DELETE",
"limit": 10,
"offset": 3,
"key": "domain",
"order": "ascend",
"search_query": "Search...",
"regex_search": true,
"rules_to_update": [
{
"domain": "kinsta.com",
"from": "/redirect/from",
"to": "/redirect/to",
"type": "permanent",
"traffic_from_city": "Nashville",
"traffic_from_country": "US",
"traffic_from_country_name": "United States",
"displayed_location": "Nashvile, United States"
}
],
"new_value": {
"domain": "kinsta.com",
"from": "/redirect/from",
"to": "/redirect/to",
"type": "permanent",
"traffic_from_city": "Nashville",
"traffic_from_country": "US",
"traffic_from_country_name": "United States",
"displayed_location": "Nashvile, United States"
}
}
'