mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
924 B
924 B
title
| title |
|---|
| Image Destroy |
Image Destroy Endpoint
The image destroy endpoint soft deletes an image and returns the deleted image resource.
For example, the /image/435 endpoint will soft delete the large cover image for the Bakemonogatari anime and return the deleted image resource.
URL
DELETE /image/{id}
Authentication
Required Permission: delete image
Roles with Permission: Content Moderator, Encoder, Admin
Other Requirements: Image must not be soft deleted
Parameters
None
Response
{
image: {
id: id,
path: "path",
size: size,
mimetype: "mimetype",
facet: "facet",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
link: "link"
}
}
Example
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/image/435