Cloudflare Page Rules API: Difference Between PUT (Update) and PATCH (Edit)

I seem to be able to do the exact same things when updating a page rule using either the PUT or PATCH option. Documentation a bit light on this.

They in fact seem totally interchangeable - am I missing something ?

PUT requires the entire configuration/parameter object, whereas with PATCH a subset is acceptable as well. Pay attention to the required and optional fields.

Fairly standard under the REST concept.


Hi - thanks for the info. I do see the required and optional parameters in the documentation. But given that then the following should not work but it does seem to

Supplying only the priority using PUT should not be permitted as per the documentation - correct ? As targets and actions are supposed to be required …

curl -X PUT “
-H “Authorization: Bearer 0”
-H “Content-Type: application/json”
–data ‘{“priority”:1}’


That is correct and would be most likely a bug in the interface as the documentation is pretty straightforward on this and follows traditional REST concepts. The validation in the PUT call might not be complete.

Do you experience any issues?

I can confirm the behaviour of PUT. I wouldn’t be surprised if PUT was just an alias for PATCH, though it neither should be according to the documentation nor by REST. Most likely a convenient shortcut, but shouldn’t influence the use.

If you wanted to report that it would be best to open a thread at #feedback.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.