Update a Persona
Updates a Persona. Send the base_revision you read. Omit a section or an age bound to keep it. Send null to clear it. AdCrunch checks the age range on the result of the merge. Therefore a call that sends only age_min can still fail, if the result is inverted. 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 Persona changed after you read it. It is 409 with error=slug_conflict if another Persona of this Brand already holds the slug you send.
/context/brands/{slug}/personas/{personaSlug}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.
personaSlugstringrequiredslugstringrequiredapplication/jsonage_maxinteger | nullUpper age bound; null clears it ("and older").
age_mininteger | nullLower age bound; null clears it ("and younger").
base_revisionintegerrequiredThe revision last read via GET — guards concurrent edits.
descriptionstringfrictionsstring | nullObjections and barriers; null clears it.
languagestring | nullThe audience's own words — not a locale; null clears it.
motivationsstring | nullJobs, triggers, outcomes; null clears it.
namestringprofilestring | nullWho they are; null clears it.
slugstringOptional new slug handle (a deliberate rename).
The Persona as it now stands, at the next revision. Send that one back on your next edit.
ageMaxnumber | nullrequiredageMinnumber | nullrequiredEach bound is independently optional, so "35+" is expressible.
brandIdstringrequiredcreatedAtnumberrequiredMilliseconds since the Unix epoch, UTC.
createdBystringrequireddescriptionstringrequiredfrictionsstring | nullrequiredObjections, doubts, what stops them.
idstringrequiredlanguagestring | nullrequiredThe words they use for the problem, in their own register. Not a locale, despite the name.
motivationsstring | nullrequiredWhat they want, and what triggers them.
namestringrequiredprofilestring | nullrequiredWho they are, and their situation.
revisionnumberrequiredIncrements on every write. Send it back as base_revision to edit; a stale one answers 409.
slugstringrequiredupdatedAtnumber | nullrequiredMilliseconds since the Unix epoch, UTC.
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 such Brand, or no Persona with that slug inside it. 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 and slug_conflict.
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.
invalid_slug, or invalid_age_range. The age range is checked against the merged result, so sending only age_min can still be rejected as inverted.
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.