# PageRules

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#TargetParam">TargetParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRule">PageRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#Target">Target</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleDeleteResponse">PageRuleDeleteResponse</a>

Methods:

- <code title="post /zones/{zone_id}/pagerules">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleNewParams">PageRuleNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleUpdateParams">PageRuleUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/pagerules">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleListParams">PageRuleListParams</a>) (\*[]<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleDeleteParams">PageRuleDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleDeleteResponse">PageRuleDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleEditParams">PageRuleEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/pagerules/{pagerule_id}">client.PageRules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, pageruleID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRuleGetParams">PageRuleGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules">page_rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/page_rules#PageRule">PageRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
