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 Store |
Anime Synonym Store Endpoint
The anime synonym store endpoint creates a new anime synonym and returns the new anime synonym resource.
For example, the /animesynonym?anime_id=218&text=Monstory endpoint will create a new Monstory synonym for the Bakemonogatari anime and return the new anime synonym resource.
URL
POST /animesynonym
Authentication
Required Permission: create anime synonym
Roles with Permission: Content Moderator, Encoder, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| anime_id | Yes | integer, Anime ID exists |
| text | Yes | string, max:192 |
| type | Yes | 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 POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/animesynonym/