mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 08:24:00 +02:00
925 B
925 B
title
| title |
|---|
| Announcement Update |
Announcement Update Endpoint
The announcement update endpoint updates an announcement and returns the updated announcement resource.
For example, the /announcement/1?content=The+Release+Has+Been+Deployed! endpoint will update the announcement content attribute and return the updated announcement resource.
URL
PUT|PATCH /announcement/{id}
Authentication
Required Permission: update announcement
Roles with Permission: Admin
Parameters
| Name | Required | Rules |
|---|---|---|
| content | No | string, max:65535 |
Response
{
announcement: {
id: id,
content: "content",
created_at: "created_at",
updated_at: "updated_at"
}
}
Example
curl -X PATCH -H "Authorization: Bearer {token}" https://api.animethemes.moe/announcement/1