Page Rules endpoint does not support account owned tokens

What is the name of the domain?

example.com

What is the error number?

1011

What is the issue you’re encountering

Page Rules endpoint does not support account owned tokens.

What steps have you taken to resolve the issue?

Googled the issue. Didn’t come across a solution.

What are the steps to reproduce the issue?

Using API to add a Page Rule for a zone/domain

Sending a request to the following endpoint https://api.cloudflare.com/client/v4/zones/$zone_id/pagerules to add a Page Rule

What API token do I need to use the Page Rule endpoint if account owned tokens don’t have permission, or does the error mean I need to give specific permissions to my API token to add a Page Rule, if so, what specific service/task do I need to allow?

Thanks

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