mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.2 KiB
1.2 KiB
title
| title |
|---|
| Anime Synonym Update |
Anime Synonym Update Endpoint
The anime synonym update endpoint updates an anime synonym and returns the updated anime synonym resource.
For example, the /animesynonym/1523?text=Monstory endpoint will update the Monstory anime synonym text attribute and return the updated anime synonym resource.
URL
PUT|PATCH /animesynonym/{id}
Authentication
Required Permission: update anime synonym
Roles with Permission: Content Moderator, Encoder, Admin
Other Requirements: Anime synonym must not be soft deleted
Parameters
| Name | Required | Rules |
|---|---|---|
| anime_id | No | integer, Anime ID exists |
| text | No | string, max:192 |
| type | No | EnumValue [Other, Native, English, Short] |
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/animesynonym/1523