v1Resources/Data/deleteRemove an asset from a folder
Remove an asset from a folder
Removes one asset's membership in the folder. A no-op success if it wasn't a member.
delete
media:write/api/v1/folders/{id}/itemsQuery parameters
idstringrequired
The folder to remove the asset from.
assetKeystringrequired
The opaque "<source>:<id>" asset key to remove. Passed as a query parameter (percent-encode the colon), not a path segment.
Response
dataobjectoptional
idstringoptional
itemCountnumberoptional
The folder's item count after the change.
Errors
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
429Too many requests. Retry after the number of seconds in the Retry-After header.
delete/api/v1/folders/{id}/items
Your API key
id *
assetKey *
{
"data": {
"id": "folder_1",
"itemCount": 12
}
}