Files
animethemes-api-docs/docs/announcement/store

title
title
Announcement Store

Announcement Store Endpoint

The announcement store endpoint creates a new announcement and returns the new announcement resource.

For example, the /api/announcement?content=The+Release+Has+Been+Deployed! endpoint will create a new announcement and return the new announcement resource.

URL

POST /api/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",
        deleted_at: "deleted_at"
    }
}
```bash curl -X POST -H "Authorization: Bearer {token}" https://api.animethemes.moe/announcement/ ```