Skip to main content

Move Upload

Learn how to move uploads between folders.

Endpoint

POST /v2/{team_id}/project/{project_id}/upload/${upload_id}/move/{folder_id}

Authentication

This endpoint requires an API key with the upload.edit scope.

Request Parameters

ParameterTypeRequiredDescription
team_idStringYesThe ID of the team
project_idStringYesThe ID of the project
folder_idStringYesThe ID of the destination folder
upload_idStringYesThe ID of the upload to move

Example Request

curl -X POST \
'https://api.send.ai/v2/team_123456/project/proj_123456/upload/upld_123456468/move/folder_789012' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'

Response

{
"payload": {
"id": "upl_abcdef123456",
"name": "Invoice-2023-001",
"status": "IN_REVIEW",
"files": {},
"meta": [
{
"name": "reference",
"value": "INV-2023-001"
},
{
"name": "customer",
"value": "Acme Corp"
}
],
"folder_id": "folder_789012",
"created_at": "2023-06-15T10:30:00Z"
}
}

Response Parameters

ParameterTypeDescription
idstringUnique identifier for the upload
namestringThe name of the upload
statusstringCurrent status of the upload
filesobjectInformation about associated files
metaarrayArray of metadata key-value pairs
folder_idstringID of the new folder containing the upload
created_atstringISO timestamp of when the upload was created

Error Codes

Status CodeDescription
400Bad request, check your request parameters
401Unauthorized, check your API key
403Forbidden, you don't have access to this upload
404Not found, the specified upload does not exist
500Server error, please try again later

Next: Get Upload →