Move an upload
Moving an upload puts it in another folder of its project: the Inbox, a folder of your own or the Bin.
POST https://api.send.ai/v2/{team_id}/project/{project_id}/upload/{upload_id}/move/{folder_id}
Scope: Uploads › Edit.
Request
The request has no body. The folder ID comes from folder_id in Get an upload or in a notification.
curl -X POST "https://api.send.ai/v2/tK3vQ9xLm2Rf8WbN0aZp/project/p3irz/upload/upld_7Hq2LmX9aB3cD4eF5gH/move/f2Kd81mQ" \
-H "Authorization: Bearer $SENDAI_API_KEY"
What moving does
All documents of the upload move with it. In a folder of your own or the Bin, they leave their queues and nobody works on them; moving the upload back to the Inbox returns them. See Moving uploads.
Moving cannot send an upload to a task: the Router decides that. Nor can it send an upload to Processed: an upload gets there once all its actions have run.
Response
The answer holds the upload, in the same shape as Get an upload.
Errors
| Status | Error | Cause |
|---|---|---|
| 400 | Uploads can't be moved into Processed. | The folder is Processed. |
| 400 | Upload is exported and cannot be moved | The upload is completed. |
| 400 | Uploads can only be moved within their own project | The upload belongs to another project. |
| 404 | Folder not found in project | The folder does not exist in this project. |
| 404 | Upload not found | The upload does not exist. |