POST v3/me/teams/{id}/captain/announcements/delete
CAPTAIN — delete a team announcement. body { announcementId }. Captain-gated on the route team; the target announcement must be a Team (=4) row whose OwnerID matches the route team (cross-team guard — a captain cannot delete another entity's announcement by id, mirroring AssertTargetInTeam). Wraps the page-pure Announcement.Create(id).Delete() (imLeagues/BLL/Announcement.cs; HandleAfterDeleted cascades the MemberAnnouncements rows). Returns void (wrapped by the global handler).
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| id | team id (captain's team) |
Define this parameter in the request URI. |
| inVO | { announcementId } |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"announcementId": 1
}
application/xml, text/xml
Sample:
<CaptainAnnouncementDeleteInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input"> <announcementId>1</announcementId> </CaptainAnnouncementDeleteInVO>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="announcementId" 1 --MultipartDataMediaFormatterBoundary1q2w3e--