# Logos ## Create new saved logo queries from image files `brand_protection.logos.create(LogoCreateParams**kwargs) -> LogoCreateResponse` **post** `/accounts/{account_id}/brand-protection/logos` Return new saved logo queries created from image files ### Parameters - `account_id: str` - `match_type: Optional[str]` - `tag: Optional[str]` - `threshold: Optional[float]` - `image: Optional[FileTypes]` ### Returns - `class LogoCreateResponse: …` - `id: Optional[int]` - `tag: Optional[str]` - `upload_path: 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 ) logo = client.brand_protection.logos.create( account_id="x", ) print(logo.id) ``` #### Response ```json { "id": 0, "tag": "tag", "upload_path": "upload_path" } ``` ## Delete saved logo queries by ID `brand_protection.logos.delete(strlogo_id, LogoDeleteParams**kwargs)` **delete** `/accounts/{account_id}/brand-protection/logos/{logo_id}` Return a success message after deleting saved logo queries by ID ### Parameters - `account_id: str` - `logo_id: 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.logos.delete( logo_id="x", account_id="x", ) ``` ## Domain Types ### Logo Create Response - `class LogoCreateResponse: …` - `id: Optional[int]` - `tag: Optional[str]` - `upload_path: Optional[str]`