Files
animethemes-api-docs/docs/jsonapi/reference/content/anime/update/index.md
T
2025-12-17 22:53:18 -03:00

1.7 KiB

title
title
Anime Update

Anime Update Endpoint

The anime update endpoint updates an anime and returns the updated anime resource.

For example, the /anime/bakemonogatari?synopsis=updated+text endpoint will update the Bakemonogatari anime synopsis attribute and return the updated Bakemonogatari resource.

URL

PUT|PATCH /anime/{slug}

Authentication

Required Permission: update anime

Roles with Permission: Content Moderator, Encoder, Admin

Other Requirements: Anime must not be soft deleted

Parameters

Name Required Rules
name No string, max:192
season No EnumValue [Winter, Spring, Summer, Fall]
media_format No EnumValue [Unknown, TV, TV Short, OVA, Movie, Special, ONA]
slug No string, max:192, alpha_dash, unique
synopsis No string, max:65535
year No integer, digits:4, min:1960, max:[current year + 1]

Response

{
    anime: {
        id: id,
        name: "name",
        slug: "slug",
        year: year,
        season: "season",
        media_format: "media_format",
        synopsis: "synopsis",
        created_at: "created_at",
        updated_at: "updated_at",
        deleted_at: "deleted_at"
    }
}

Example

curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/anime/bakemonogatari