POST Move items to trash.
POST
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" }
Last updated 3 years ago