Delete Announcement
Delete an announcement.
Endpoint
INFO
DELETE /api/v1/dashboard/announcements/{announcement}
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
announcement | integer | Announcement ID |
Example Request
bash
curl -X DELETE https://api.daakey.com/api/v1/dashboard/announcements/1 \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Announcement deleted",
"data": null,
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}