Create new saved string queries
client.BrandProtection.Queries.New(ctx, params) error
POST/accounts/{account_id}/brand-protection/queries
Return a success message after creating new saved string queries
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Create new saved string queries
package main
import (
"context"
"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/brand_protection"
"github.com/cloudflare/cloudflare-go/option"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
)
err := client.BrandProtection.Queries.New(context.TODO(), brand_protection.QueryNewParams{
AccountID: cloudflare.F("x"),
})
if err != nil {
panic(err.Error())
}
}