📁 Content Library

Move media between folders

Changed on

Moves the given media into a folder. Pass folder_id=null to move items to Uncategorized. Note that moving an archived item also restores it from the archive, matching the behaviour of the web app. Reversible.

post/api/v1/workspaces/{workspace_id}/media/move

Request

  • Base URL
    https://api.contentstudio.io
  • URL
    https://api.contentstudio.io/api/v1/workspaces/{workspace_id}/media/move
  • Auth
    API key in header X-API-Key

Path parameters

workspace_idstring required
Example:610a1e660cb41530ca40d372

Request body

media_idsstring[] required
folder_idstring nullable

Destination folder; null moves to Uncategorized

Example request

{
  "media_ids": [
    "625d06734ceb636c2f5e7743"
  ],
  "folder_id": "625d06734ceb636c2f5e7799"
}

Response

Media moved. Assets already in the destination are reported under skipped rather than failing the request, so a repeated call is a safe no-op.

statusboolean
messagestring
movedinteger

Assets whose folder actually changed

skippedinteger

Assets already in the destination folder

Example response

{
  "status": true,
  "message": "Media moved successfully.",
  "moved": 1
}

Changes