/api/item/moveToTrash
POST Move items to trash.
itemIds
Required
Sample Code:
1
var data = {
2
"itemIds": ["KWLKGQW2HTHC7", "KWLOGLTX0FGHF"]
3
};
4
5
var requestOptions = {
6
method: 'POST',
7
body: JSON.stringify(data),
8
redirect: 'follow'
9
};
10
11
fetch("http://localhost:41595/api/item/moveToTrash", requestOptions)
12
.then(response => response.json())
13
.then(result => console.log(result))
14
.catch(error => console.log('error', error));
Copied!
Results Returned:
1
{
2
"status": "success"
3
}
Copied!
Copy link