# Settings ## Get zone-level Waiting Room settings `client.WaitingRooms.Settings.Get(ctx, query) (*SettingGetResponse, error)` **get** `/zones/{zone_id}/waiting_rooms/settings` Gets the zone-level Waiting Room settings that apply as defaults to all waiting rooms on the zone. ### Parameters - `query SettingGetParams` - `ZoneID param.Field[string]` Identifier. ### Returns - `type SettingGetResponse struct{…}` - `SearchEngineCrawlerBypass bool` Whether to allow verified search engine crawlers to bypass all waiting rooms on this zone. Verified search engine crawlers will not be tracked or counted by the waiting room system, and will not appear in waiting room analytics. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/waiting_rooms" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) setting, err := client.WaitingRooms.Settings.Get(context.TODO(), waiting_rooms.SettingGetParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", setting.SearchEngineCrawlerBypass) } ``` #### Response ```json { "result": { "search_engine_crawler_bypass": true } } ``` ## Update zone-level Waiting Room settings `client.WaitingRooms.Settings.Update(ctx, params) (*SettingUpdateResponse, error)` **put** `/zones/{zone_id}/waiting_rooms/settings` Fully updates zone-level Waiting Room settings, replacing the existing configuration. ### Parameters - `params SettingUpdateParams` - `ZoneID param.Field[string]` Path param: Identifier. - `SearchEngineCrawlerBypass param.Field[bool]` Body param: Whether to allow verified search engine crawlers to bypass all waiting rooms on this zone. Verified search engine crawlers will not be tracked or counted by the waiting room system, and will not appear in waiting room analytics. ### Returns - `type SettingUpdateResponse struct{…}` - `SearchEngineCrawlerBypass bool` Whether to allow verified search engine crawlers to bypass all waiting rooms on this zone. Verified search engine crawlers will not be tracked or counted by the waiting room system, and will not appear in waiting room analytics. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/waiting_rooms" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) setting, err := client.WaitingRooms.Settings.Update(context.TODO(), waiting_rooms.SettingUpdateParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", setting.SearchEngineCrawlerBypass) } ``` #### Response ```json { "result": { "search_engine_crawler_bypass": true } } ``` ## Patch zone-level Waiting Room settings `client.WaitingRooms.Settings.Edit(ctx, params) (*SettingEditResponse, error)` **patch** `/zones/{zone_id}/waiting_rooms/settings` Partially updates zone-level Waiting Room settings using PATCH semantics. ### Parameters - `params SettingEditParams` - `ZoneID param.Field[string]` Path param: Identifier. - `SearchEngineCrawlerBypass param.Field[bool]` Body param: Whether to allow verified search engine crawlers to bypass all waiting rooms on this zone. Verified search engine crawlers will not be tracked or counted by the waiting room system, and will not appear in waiting room analytics. ### Returns - `type SettingEditResponse struct{…}` - `SearchEngineCrawlerBypass bool` Whether to allow verified search engine crawlers to bypass all waiting rooms on this zone. Verified search engine crawlers will not be tracked or counted by the waiting room system, and will not appear in waiting room analytics. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/waiting_rooms" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) response, err := client.WaitingRooms.Settings.Edit(context.TODO(), waiting_rooms.SettingEditParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.SearchEngineCrawlerBypass) } ``` #### Response ```json { "result": { "search_engine_crawler_bypass": true } } ``` ## Domain Types ### Setting - `type Setting struct{…}` - `SearchEngineCrawlerBypass bool` Whether to allow verified search engine crawlers to bypass all waiting rooms on this zone. Verified search engine crawlers will not be tracked or counted by the waiting room system, and will not appear in waiting room analytics.