mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.6 KiB
1.6 KiB
title
| title |
|---|
| Featured Theme Update |
Featured Theme Update Endpoint
The featured theme update endpoint updates a featured theme and returns the updated featured theme resource.
For example, the /featuredtheme/1?start_at=2023-01-01 endpoint will update the featured theme start_at attribute and return the updated featured theme resource.
URL
PUT|PATCH /featuredtheme/{id}
Authentication
Required Permission: update featured theme
Roles with Permission: Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| start_at | No | date_format:Y-m-d\TH:i:s.u, before:end_at |
| end_at | No | date_format:Y-m-d\TH:i:s.u, after:start_at |
| entry_id | No | integer, Entry ID Exists, Anime Theme Entry Video Exists when video_id is provided |
| user_id | No | integer, User ID Exists |
| video_id | No | integer, Video ID Exists, Anime Theme Entry Video Exists when entry_id is provided |
Response
{
featuredtheme: {
id: id,
start_at: "start_at",
end_at: "end_at",
created_at: "created_at",
updated_at: "updated_at"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/featuredtheme/1