📁 Content Library

Archive or unarchive media

Changed on

Archiving hides media from the default library listing without deleting it — the safe alternative to deletion for media attached to posts that have not published yet. Set archived=false to restore items to their original folder. Reversible.

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

Request

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

Path parameters

workspace_idstring required
Example:610a1e660cb41530ca40d372

Request body

media_idsstring[] required
archivedboolean required

true archives, false restores

Example request

{
  "media_ids": [
    "625d06734ceb636c2f5e7743"
  ],
  "archived": true
}

Response

Media archived or unarchived

statusboolean
messagestring

Example response

{
  "status": true,
  "message": "Media archived successfully."
}

Changes