mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.0 KiB
1.0 KiB
title
| title |
|---|
| Audio Restore |
Audio Restore Endpoint
The audio restore endpoint restores a soft deleted audio and returns the restored audio resource.
For example, the /restore/audio/Bakemonogatari-OP1.ogg endpoint will restore the soft deleted Bakemonogatari-OP1.ogg audio and return the restored Bakemonogatari-OP1.ogg resource.
URL
PATCH /restore/audio/{basename}
Authentication
Required Permission: restore audio
Roles with Permission: Encoder, Admin
Other Requirements: Audio must be soft deleted
Parameters
None
Response
{
audio: {
id: id,
basename: "basename",
filename: "filename",
path: "path",
size: size,
mimetype: "mimetype",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
link: "link",
views_count: views_count
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/restore/audio/Bakemonogatari-OP1.ogg