Skip to main content

resolveEnrichedBrand

Requires permission products:brand:create.

Match-or-create a brand by name (used when applying an AI-suggested new brand). Needs the brands create permission.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ResolveEnrichedBrand($name: String!) {
resolveEnrichedBrand(name: $name) {
id
name
}
}

Variables:

{
"name": "string"
}

Response:

{
"data": {
"resolveEnrichedBrand": {
"id": "id",
"name": "string"
}
}
}
resolveEnrichedBrand(
name: String!
): ResolvedBrand!

Arguments​

resolveEnrichedBrand.name ● String! non-null scalar​

The brand name found during enrichment.

Type​

ResolvedBrand object​

A brand matched or created for a product.