mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-30 02:29:26 +02:00
868 B
868 B
title
| title |
|---|
| Announcement Store |
Announcement Store Endpoint
The announcement store endpoint creates a new announcement and returns the new announcement resource.
For example, the /announcement?content=Lorem+Ipsum endpoint will create a new announcement and return the new announcement resource.
URL
POST /announcement
Authentication
Required Permission: create announcement
Roles with Permission: Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| content | Yes | string, max:65535 |
Response
{
announcement: {
id: id,
content: "content",
created_at: "created_at",
updated_at: "updated_at"
}
}
Example
curl -X POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/announcement/