curl --request PUT \
--url https://services.leadconnectorhq.com/medias/delete-files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filesToBeDeleted": [
{
"_id": "686f630df0d3166d68fbcec2"
}
],
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR",
"status": "deleted"
}
'Soft-deletes or trashes multiple files and folders in a single request
curl --request PUT \
--url https://services.leadconnectorhq.com/medias/delete-files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filesToBeDeleted": [
{
"_id": "686f630df0d3166d68fbcec2"
}
],
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR",
"status": "deleted"
}
'Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account
Access Token
"Bearer 9c48df2694a849b6089f9d0d3513efe"
Array of file objects to be deleted or trashed
Show child attributes
[{ "_id": "686f630df0d3166d68fbcec2" }]Type of entity that owns the files
location "location"
Location identifier
"sx6wyHhbFdRXh302LLNR"
Status to set for the files (deleted or trashed)
deleted, trashed "deleted"
Successful response
Was this page helpful?