Partial update for an avatar's editable identity fields.
<br/>Powers the pencil-edit affordances on /avatars/:id. Body<br/>contract is defined by UpdateAvatarRequest (extra-forbid, length<br/>bounded). Unknown fields → 422 from the schema layer; an empty body<br/>is a no-op that returns the current detail bundle with 200<br/>(idempotent).<br/><br/>On success the response mirrors GET /api/v1/avatars/<id>/detail<br/>so the SPA can drop the new payload straight into its react-query<br/>cache via setQueryData without an extra round trip.<br/><br/>Backend note on "niche": the avatar model exposes category_id<br/>(FK to account_categories), not a free-text niche column. The<br/>SPA's resolveCategoryId(niche, categories) helper turns the<br/>wizard's niche key into a category_id before posting; this<br/>endpoint accepts category_id directly. The string "niche" is<br/>rejected (extra-forbid) so the SPA cannot silently fail-silent on<br/>a misnamed key.
Request
- Base URL: https://api.avatarfactory.io (the document declares no server; this is the origin it was published from)
- URL: https://api.avatarfactory.io/api/v1/avatars/{avatar_id}
- Auth: one of:
- API key in cookie session
- HTTP bearer
Path parameters
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.