Files
animethemes-api-docs/docs/song/update

title
title
Song Update

Song Update Endpoint

The song update endpoint updates a song and returns the updated song resource.

For example, the /api/song/song?title=staple+stable endpoint will update the "staple stable" song title attribute and return the updated "staple stable" resource.

URL

PUT|PATCH /api/song/{id}

Authentication

Required Permission: update song

Roles with Permission: Wiki Editor, Admin

Parameters

Name Required Rules
title No string, max:192

Response

{
    song: {
        id: id,
        title: "title",
        created_at: "created_at",
        updated_at: "updated_at",
        deleted_at: "deleted_at"
    }
}
```bash curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/song/3373 ```