# Queries ## Create new saved string queries `brand_protection.queries.create(QueryCreateParams**kwargs)` **post** `/accounts/{account_id}/brand-protection/queries` Return a success message after creating new saved string queries ### Parameters - `account_id: str` - `id: Optional[str]` - `scan: Optional[bool]` - `tag: Optional[str]` - `max_time: Optional[Union[str, datetime, null]]` - `min_time: Optional[Union[str, datetime, null]]` - `scan: Optional[bool]` - `string_matches: Optional[object]` - `tag: Optional[str]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) client.brand_protection.queries.create( account_id="x", ) ``` ## Delete saved string queries by ID `brand_protection.queries.delete(QueryDeleteParams**kwargs)` **delete** `/accounts/{account_id}/brand-protection/queries` Return a success message after deleting saved string queries by ID ### Parameters - `account_id: str` - `id: Optional[str]` - `scan: Optional[bool]` - `tag: Optional[str]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) client.brand_protection.queries.delete( account_id="x", ) ``` ## Create new saved string queries in bulk `brand_protection.queries.bulk(QueryBulkParams**kwargs)` **post** `/accounts/{account_id}/brand-protection/queries/bulk` Return a success message after creating new saved string queries in bulk ### Parameters - `account_id: str` - `queries: Optional[Iterable[Dict[str, object]]]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) client.brand_protection.queries.bulk( account_id="x", ) ```