Move several assets into a folder

Moves every listed asset into uploadFolderId. Omit uploadFolderId (or send null) to move the assets back to the root of the media library.

The move is all-or-nothing at validation time: if any id is malformed, any asset is missing, or any asset belongs to another workspace, nothing is moved. The updateMany that follows is not transactional.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X PATCH 'https://apis.elai.io/api/v1/uploads/bulk/move' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "uploadIds": [
    "66a1f0c2b7cd13032a9c6001",
    "66a1f0c2b7cd13032a9c6002"
  ],
  "uploadFolderId": "66a1f0c2b7cd13032a9c6100"
}'
{
  "message": "Successfully moved 2 uploads",
  "movedCount": 2
}
Body Params
uploadIds
array of strings
required
length ≥ 1

Asset ids to move. Must be 24-char hex ObjectIds.

uploadIds*
string | null

Destination folder, or null/omitted for the media-library root.

Responses

uploadIds empty or not an array, an id is not a valid ObjectId, or the destination folder does not belong to this workspace.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json