mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.5 KiB
1.5 KiB
title
| title |
|---|
| Featured Theme Store |
Featured Theme Store Endpoint
The featured theme store endpoint creates a new featured theme and returns the new featured theme resource.
For example, the /featuredtheme?start_at=2023-01-01&end_at=2023-01-07 endpoint will create a new featured theme and return the new featured theme resource.
URL
POST /featuredtheme
Authentication
Required Permission: create featured theme
Roles with Permission: Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| start_at | Yes | date_format:Y-m-d\TH:i:s.u, before:end_at |
| end_at | Yes | 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 POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/featuredtheme/