Skip to content

Create announcement​

POST
/api/announcements

Create an announcement. Admin role is required.

Authorizations​

bearerAuth

Bearer token using a JWT

Type
HTTP (Bearer)

Request Body​

application/json
JSON
{
  
"title": "Announcement title",
  
"announcement": "Announcement text",
  
"visible": true
}

Responses​

The new announcement.

application/json
JSON
{
  
"id": 1,
  
"createdAt": "2020-01-29T18:10:16.630Z",
  
"updatedAt": "2020-01-30T22:42:14.789Z",
  
"title": "Announcement title",
  
"announcement": "Announcement text",
  
"visible": true
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI