Rename a file or a folder
Renames a file or a folder in a project the user can edit; a file's name applies to its Drive entry and its content. Pass the entry_id from list_folder, never a media_id. Two folders side by side can't share a name, and a memory's folder can't take the name of another of the user's memories. A memory reads its instructions from its Memory.md: that file keeps its name, and no other file in a memory can be named Memory.md; the user edits a memory's instructions in awen.
Needs a key with awen:write. Costs 2 units of the key's rate limit.
apiKeyAuthorizationBearer <token>An API key from Settings → Connected apps → API keys, sent as Authorization: Bearer awen_sk_…. Keep it on a server: a request from a web page is refused.
application/json- body
project_id*stringThe project's project_id.
^[A-Za-z0-9_-]+$1 <= length <= 128entry_id*stringThe entry_id of the file or folder.
^[A-Za-z0-9_-]+$1 <= length <= 128name*stringThe new name.
^[^\x00]*$1 <= length <= 2083The operation's answer.
application/json- response
entry_id*stringname*stringcurl -X POST 'https://app.awen.ai/api/v1/rename_file' \ -H 'Content-Type: application/json' \ -d '{ "project_id": "string", "entry_id": "string", "name": "string"}'{ "entry_id": "string", "name": "string"}Move files and folders POST
Moves files and folders of a project the user can edit into one folder, in a single call. Pass each item's entry_id from list_folder, never a media_id, and folder_id "root" for the project root or a folder's entry_id. A memory never moves inside another memory, and no other file named Memory.md moves into one: a memory reads its instructions only from its own Memory.md. Needs a key with awen:write. Costs 2 units of the key's rate limit.
Restore a conversation POST
Restores one of the user's archived awen conversations to their active list, as Restore does in awen. A person can have at most 100 active conversations in a project: at the limit this is refused until one is archived. Needs a key with awen:write. Costs 2 units of the key's rate limit.