Update a Brand
Updates a Brand. Send the base_revision you read. Omit a narrative section to keep it. Send null to clear it. The slug changes only when you send a slug: a new name alone never moves the handle. The answer is 409 with error=revision_mismatch if the Brand changed after you read it. It is 409 with error=slug_conflict if another Brand already holds the slug you send.
/context/brands/{slug}AuthorizationBearer token · headerrequiredSend Authorization: Bearer <credential>.
Use an API key (acr_…), from the AdCrunch console under Settings → API keys.
The credential names the organization, and no operation takes an organization parameter.
See https://docs.adcrunch.dev/api/authentication.
slugstringrequiredapplication/jsonbase_revisionintegerrequiredThe revision last read via GET — guards concurrent edits.
descriptionstringguidelinesstring | nullDo's and don'ts; null clears the section.
identitystring | nullPositioning and mission; null clears it.
logo_document_idstring | nullNominate one of the Brand's documents as its logo; null clears the nomination.
messagingstring | nullKey messages; null clears the section.
namestringslugstringOptional new slug handle (a deliberate rename).
voicestring | nullTone of voice; null clears the section.
website_urlstring<uri> | nullThe Brand's public site; null clears it. Changing it starts no read.
The Brand as it now stands, at the next revision. Send that one back on your next edit.
createdAtnumberrequiredMilliseconds since the Unix epoch, UTC.
createdBystringrequireddescriptionstringrequiredguidelinesstring | nullrequiredDo’s and don’ts, claims to avoid.
idstringrequiredidentitystring | nullrequiredPositioning, mission, what is on offer.
logoDocumentIdstring | nullrequiredThe Document this Brand nominates as its logo.
messagingstring | nullrequiredKey messages, value propositions, proof points.
namestringrequiredrevisionnumberrequiredIncrements on every write. Send it back as base_revision to edit; a stale one answers 409.
slugstringrequiredupdatedAtnumber | nullrequiredMilliseconds since the Unix epoch, UTC.
voicestring | nullrequiredTone and personality.
websiteUrlstring | nullrequiredThe brand’s public site. A locator only — its contents are not stored.
The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. error is invalid_request, and issues names each field. Nothing was changed.
issuesobject[]requiredOne entry for each field that does not match.
Show propertiesHide properties
objectinstringrequiredThe part of the request that holds the field.
bodycookieheadersparamsquerymessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
pathstringrequiredA JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
invalid_requestmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No API key, or one that does not resolve. See the security scheme. error is unauthorized.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
unauthorizedmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The caller does not hold brand:write. error is forbidden.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
forbiddenmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No Brand with that slug. error is not_found.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
error tells the two conflicts apart. revision_mismatch means somebody wrote first — re-read, re-apply, and send currentRevision back. slug_conflict means the rename collides.
currentRevisionnumberrequiredThe revision the row holds now. Re-read, re-apply your edit on top, and send this back as base_revision.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
revision_mismatchmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
slugstringrequiredThe slug that is already taken.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
slug_conflictmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
Two codes share this status. invalid_slug: the new slug has no letter or digit. invalid_logo: the nominated logo is not one of this Brand’s own finished documents.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.