Skip to main content

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​

StatusErrorCause
400Uploads can't be moved into Processed.The folder is Processed.
400Upload is exported and cannot be movedThe upload is completed.
400Uploads can only be moved within their own projectThe upload belongs to another project.
404Folder not found in projectThe folder does not exist in this project.
404Upload not foundThe upload does not exist.