TypeScript client
Assets
Soft delete asset
Move an asset to the team’s trash (soft delete). It disappears from listings and search but is recoverable via restoreAsset. Check getAssetReferences first if you need to know which posts still reference it.
DELETE
TypeScript client
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Media-library asset id (UUID), as returned by asset list, search, and upload endpoints.
Response
Success
a Universally Unique Identifier
Pattern:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
Pattern:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Available options:
image, video, audio, gif, document Available options:
user_upload, render, template, green_screen_template, sound_effect, music, brand_asset, ai_image, ai_video, other - Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
Available options:
pending, processing, completed, failed a Universally Unique Identifier
Pattern:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$