v1Resources/Data/postAdd assets to a folder

Add assets to a folder

Adds each given asset key to the folder. Already-present keys are ignored.

post/api/v1/folders/{id}/items
media:write
Query parameters
idstringrequired
The folder to add assets to.
Request body
assetKeysarray of stringrequired
Opaque "<source>:<id>" asset keys to add. Required, non-empty.
Response
dataobjectoptional
idstringoptional
itemCountnumberoptional
The folder's item count after the change.
Errors
400The request is missing a required parameter or is otherwise malformed.
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.
post/api/v1/folders/{id}/items
Your API key
id *
Request body*
{
  "data": {
    "id": "folder_1",
    "itemCount": 13
  }
}