📁 Content Library
Archive or unarchive media
Changed onArchiving 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 URLhttps://api.contentstudio.io
- URLhttps://api.contentstudio.io/api/v1/workspaces/{workspace_id}/media/archive
- AuthAPI key in header X-API-Key
Path parameters
workspace_idstring required
Example:610a1e660cb41530ca40d372
Request body
Example request
{
"media_ids": [
"625d06734ceb636c2f5e7743"
],
"archived": true
}Response
Media archived or unarchived
Example response
{
"status": true,
"message": "Media archived successfully."
}Changes
- info
endpoint added
- info