Move files and folders
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.
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_ids*array<>The entry_id of each file and folder to move.
1 <= items <= 25folder_id*|"root", or the entry_id of the folder to move them into.
The operation's answer.
application/json- response
entry_ids*array<string>folder_id*stringcurl -X POST 'https://app.awen.ai/api/v1/move_file' \ -H 'Content-Type: application/json' \ -d '{ "project_id": "string", "entry_ids": [ "string" ], "folder_id": "root"}'{ "entry_ids": [ "string" ], "folder_id": "string"}Import a file POST
Adds a file to a project the user can edit, as an upload in awen does: from a public URL, from a file the user attached in ChatGPT (file), from text with a name, or from a file you sent after create_upload (upload_id). Drive takes files up to 512 MB, images up to 95 MB and any video, never programs. Only an MP4 opens as a video in awen: other formats save as plain files. Pass exactly one of url, file, text or upload_id. A file you made on this machine from awen files, such as a cutout, names them in derived_from. A memory's instructions are its own Memory.md, so no file named Memory.md can be added to a memory; the user edits them in awen. Needs a key with awen:write. Costs 4 units of the key's rate limit.
Rename a file or a folder POST
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.