mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
733 B
733 B
title
| title |
|---|
| Announcement Destroy |
Announcement Destroy Endpoint
The announcement destroy endpoint deletes an announcement and returns a confirmation message.
For example, the /announcement/1 endpoint will delete the announcement of id '1' and return a confirmation message.
URL
DELETE /announcement/{id}
Authentication
Required Permission: delete announcement
Roles with Permission: Admin
Parameters
None
Response
{
announcement: {
id: id,
content: "content",
created_at: "created_at",
updated_at: "updated_at"
}
}
Example
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/announcement/1