curl --request GET \
--url https://apix.us.amity.co/webhook/file.didDelete
{
"networkId": "6848030d11c7e8b56c3570b5",
"event": "file.didDelete",
"data": {
"fileId": "fileId",
"fileUrl": "https://localhost/api/v3/files/fileId/download",
"type": "file",
"accessType": "public",
"altText": null,
"createdAt": "1900-01-01T00:00:00.000Z",
"updatedAt": "1900-01-01T00:00:00.000Z",
"attributes": {
"name": "foobar.png",
"extension": "png",
"size": 8658,
"mimeType": "image/png"
}
}
}
Send deleted file information whenever a file got deleted
curl --request GET \
--url https://apix.us.amity.co/webhook/file.didDelete
{
"networkId": "6848030d11c7e8b56c3570b5",
"event": "file.didDelete",
"data": {
"fileId": "fileId",
"fileUrl": "https://localhost/api/v3/files/fileId/download",
"type": "file",
"accessType": "public",
"altText": null,
"createdAt": "1900-01-01T00:00:00.000Z",
"updatedAt": "1900-01-01T00:00:00.000Z",
"attributes": {
"name": "foobar.png",
"extension": "png",
"size": 8658,
"mimeType": "image/png"
}
}
}