Files
animethemes-api-docs/docs/image/destroy/README.md
T
2022-06-30 15:42:51 -05:00

897 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: Wiki Editor, Admin

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"
    }
}
```bash curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/image/435 ```