mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-11-06 06:14:42 +01:00
title
| title |
|---|
| Anime Theme Update |
Anime Theme Update Endpoint
The anime theme update endpoint updates an anime theme and returns the updated anime theme resource.
For example, the /animetheme/3373?song_id=3373 endpoint will update the song_id attribute of the OP1 theme for the Bakemonogatari anime and return the updated anime theme resource.
URL
PUT|PATCH /animetheme/{id}
Authentication
Required Permission: update anime theme
Roles with Permission: Wiki Editor, Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| anime_id | No | integer, Anime ID exists |
| type | No | EnumValue {OP, ED} |
| sequence | No | integer, min:0 |
| group | No | string, max:192 |
| slug | No | string, max:192, alpha_dash |
| song_id | No | integer, Song ID exists |
Response
{
animetheme: {
id: id,
type: "type",
sequence: sequence,
group: "group",
slug: "slug",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}