Insert logo query
client.brandProtection.v2.logos.create(LogoCreateParams { account_id, image_data, similarity_threshold, 2 more } params, RequestOptionsoptions?): LogoCreateResponse { message, success, query_id }
POST/accounts/{account_id}/cloudforce-one/v2/brand-protection/logo/queries
Create a new saved brand protection logo query for visual similarity matching
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Insert logo query
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const logo = await client.brandProtection.v2.logos.create({
account_id: 'x',
image_data: 'x',
similarity_threshold: 0,
tag: 'x',
});
console.log(logo.query_id);{
"message": "message",
"success": true,
"query_id": 0
}Returns Examples
{
"message": "message",
"success": true,
"query_id": 0
}