DAM: Folders
Move files or folders to a target folder
Moves multiple files and/or folders into the destination folder specified. Process is run synchronously, so response time is potentially long. Only 'file' and 'folder' resources can be moved into a folder.
post/dam/folders/{folder_id}/move-to
Request
- Base URLhttps://api.kontainer.com/jsonapi/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
folder_idstring required
Example:1234
Destination Folder ID
Request body
Example request
{
"data": {
"type": "move_to_folder",
"relationships": {
"sources": {
"data": [
{
"type": "file",
"id": "1234"
},
{
"type": "folder",
"id": "12345"
}
]
}
}
},
"meta": {
"file_conflict_resolution": "rename"
}
}Response
Move completed successfully
Example response
{
"meta": {
"state": "completed",
"summary": {
"moved_folder_count": 1,
"moved_file_count": 12
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.