/api/v1/things/bulk-trash
POST
/api/v1/things/bulk-trash
const url = 'https://example.com/api/v1/things/bulk-trash';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"thingIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"contents":"move"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/things/bulk-trash \ --header 'Content-Type: application/json' \ --data '{ "thingIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "contents": "move" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
thingIds
required
Array<string>
contents
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
trashed
required
Array<string>
moved
required
Array<string>
events
required
Array<string>
Examplegenerated
{ "trashed": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "moved": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "events": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}