Replace the knowledge files
Replaces the avatar's whole set of knowledge files and re-runs the build
stages that depend on them; send none to clear the set. The
knowledge.facts text and the questionnaire answers are kept (change
them with PATCH /v1/avatars/{avatarId}).
- Body: repeat the
filespart for each document (pdf, docx, doc, txt, md, html or csv, up to 50 MB each, at most 20), with an optionaldescriptionsJSON object of file name to description. WherePOST /v1/uploadsis available, JSON{"files": [...], "descriptions": {...}}also works, with https URLs orknowledgeuploads consumed on success. - A URL's file is named by its last path segment, an upload's by its
fileName;descriptionsuses those names. - v2 conversations do not use knowledge yet.
- Scope:
avatars:write.
X-Api-Key<token>Your secret API key (sk_atmee_...; older keys start sk_live_),
sent as X-Api-Key. Keep it on your server and never send it to a
browser.
avatarId*stringuuid- body
files*array<>descriptions?stringJSON object, filename -> description (<= 500 chars each).
Accepted; the affected build stages re-run.
application/json- response
avatarId*stringuuidstatus*"building""building"curl -X PUT 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge' \ -H 'Content-Type: application/json' \ -d '{ "files": [ "string" ]}'{ "avatarId": "ac572b6e-802b-4b9e-a602-0786d4441e67", "status": "building"}Get the knowledge GET
Returns the facts text, the knowledge questionnaire's questions and answers, and the knowledge files with presigned URLs.
Get monetization GET
Returns whether the avatar is monetized, its last 30 days against the eligibility requirements (the account's own conversations left out), the account's cap on monetized avatars, and what the avatar earned, in microcredits (100 = 1 credit).

