Help CenterVying
Open Vying
Menu

Update a Brand

PATCH/brands/{brandId}

Change a brand's name, domains or aliases. A brand outside the key's reach answers 404, identically to one that does not exist.

Needs write access. About keys

Request

curl -X PATCH "https://app.vyingfor.com/api/v1/brands/{brandId}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brandName":"Acme"}'

Parameters

NameInTypeDescription
brandId requiredPathstring

Brand identifier.

Body

FieldTypeDescription
brandNamestring
domainsstring[]

Brand domains. The first entry is the primary website; remaining entries are additional domains.

aliasesstring[]
countrystring

The brand's default country. ISO 3166-1 alpha-2 country, from the supported list in the countries and languages guide. Changing it moves every prompt that sets none of its own.

languagestring

The brand's default language. ISO 639-1 language, from the supported list in the countries and languages guide. Changing it does not translate any prompt.

Response

200 Brand updated

FieldTypeDescription
idstring

User-supplied brand identifier (e.g. "acme").

namestring
domainsstring[]

Brand domains. The first entry is the primary website; remaining entries are additional domains.

aliasesstring[]
enabledboolean
onboardedboolean
createdAtstring
updatedAtstring
organizationIdstring

The organization that owns this brand and is billed for it.

enabledModelsarray or null

Models this brand is tracked on.

delayOverrideHoursinteger or null

Sampling cadence override in hours. Null means the plan cadence.

countrystring

The country prompts are asked from unless they set their own. Defaults to US.

languagestring

The language prompts are written in unless they set their own. Defaults to en.

Errors