/api/item/moveToTrash
POST Move items to trash.
itemIds
Required
Sample Code:
var data = {
"itemIds": ["KWLKGQW2HTHC7", "KWLOGLTX0FGHF"]
};
var requestOptions = {
method: 'POST',
body: JSON.stringify(data),
redirect: 'follow'
};
fetch("http://localhost:41595/api/item/moveToTrash", requestOptions)
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Results Returned:
{
"status": "success"
}
Copy link