How can I use the Cloudflare API to update existing bulk redirects?

Responsive Ad Header

Question

Grade: Education Subject: Support
How can I use the Cloudflare API to update existing bulk redirects?
Asked by:
67 Viewed 67 Answers

Answer (67)

Best Answer
(342)
To update existing redirects, you'll need to first identify the existing redirect IDs. You can retrieve the IDs by querying the `/v1/redirects` endpoint. Then, you can use a PATCH request to the specific redirect ID with a JSON payload containing the updated redirect details. Ensure you have the correct permissions to modify the redirects.