Files
animethemes-api-docs/docs/jsonapi/reference/content/image/restore/index.md
T
2025-12-17 22:53:18 -03:00

962 B

title
title
Image Restore

Image Restore Endpoint

The image restore endpoint restores a soft deleted image and returns the restored image resource.

For example, the /restore/image/435 endpoint will restore the soft deleted large cover image for the Bakemonogatari anime and return the restored image resource.

URL

PATCH /restore/image/{id}

Authentication

Required Permission: restore image

Roles with Permission: Content Moderator, Encoder, Admin

Other Requirements: Image must 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 PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/restore/image/435