FileUploads
Delete a file upload
Deletes a single file upload by ID and returns the deleted file's details.
delete/api/files/{id}
Request
- Base URLhttps://api.sponsorunited.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
ID of the file upload to delete
Response
The deleted file upload details
Example response
{
"id": 1,
"original_name": "document.pdf",
"stored_name": "202101_document.pdf",
"mime_type": "application/pdf",
"file_size": 204800,
"file_hash": "abcdef123456",
"url": "https://example.com/files/document.pdf",
"user": {
"id": 1,
"name": "John Doe"
},
"thumbnail": {
"id": 2,
"original_url": "https://example.com/thumbnails/original.png",
"image_url": "https://example.com/thumbnails/image.png",
"resized_image_url": "https://example.com/thumbnails/resized.png",
"extension": "png",
"mime_type": "image/png",
"file_size": 10240,
"width": 100,
"height": 100
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.