mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
976 B
976 B
title
| title |
|---|
| Anime Synonym Restore |
Anime Synonym Restore Endpoint
The anime synonym restore endpoint restores a soft deleted anime synonym and returns the restored anime synonym resource.
For example, the /restore/animesynonym/1523 endpoint will restore the soft deleted Monstory synonym for the Bakemonogatari anime and return the restored anime synonym resource.
URL
PATCH /restore/animesynonym/{id}
Authentication
Required Permission: restore anime synonym
Roles with Permission: Content Moderator, Encoder, Admin
Other Requirements: Synonym must be soft deleted
Parameters
None
Response
{
animesynonym: {
id: id,
text: "text",
type: "type",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/restore/animesynonym/1523