Skip to content

Move assets to trash

Request

Recoverable deletion. If any asset is in use, 409 returns an empty trashedAssetIds array alongside blocked results. No assets are trashed until all usage blockers are resolved.

Security
ShuffllApiKey
Path
organizationIdstringrequired

Unique identifier for the organization

Example:693fb82afd8d1c43077ba0fb
workspaceIdstringrequired

Unique identifier for the workspace

Example:693fb82afd8d1c43077ba0fe
Bodyapplication/jsonrequired
assetIdsstring or Array of stringsrequired
Example:
[ "6947b539cc95ea68854bb523", "6947b539cc95ea68854bb524" ]
One of:

Single asset ID

string
curl -i -X DELETE \
  https://api-docs.shuffll.com/_mock/apis/auth/organization/693fb82afd8d1c43077ba0fb/workspace/693fb82afd8d1c43077ba0fe/assets \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "assetIds": [
      "6947b539cc95ea68854bb523",
      "6947b539cc95ea68854bb524"
    ]
  }'

Responses

Assets moved to trash

Bodyapplication/json
trashedAssetIdsArray of strings
blockedArray of objects
Response
{ "trashedAssetIds": [ "string" ], "blocked": [ {} ] }