mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.7 KiB
1.7 KiB
title
| title |
|---|
| Resource Store |
Resource Store Endpoint
The resource store endpoint creates a new external resource and returns the new external resource.
For example, the /api/resource?link=https%3A%2F%2Fmyanimelist.net%2Fanime%2F5081%2F&site=MyAnimeList endpoint will create a new MyAnimeList resource for the Bakemonogatari anime and return the new MyAnimeList resource.
URL
POST /api/resource
Authentication
Required Permission: create external resource
Roles with Permission: Wiki Editor, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| link | Yes | max:192, url, link matches site |
| external_id | No | integer, min:0 |
| site | Yes | EnumValue {Official Website, Twitter, AniDB, Anilist, Anime-Planet, Anime News Network, Kitsu, MyAnimeList, Wikipedia} |
Response
{
resource: {
id: id,
link: "link",
external_id: external_id,
site: "site",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
link: "link"
}
}