POST v3/me/teams/{id}/captain/announcements

CAPTAIN — post a team announcement. body { title, body }. Captain-gated on the route team (AssertCaptainOfTeam → CommonHelper.IsTeamAdmin — captain/ co-captain OR sport-admin), which pins the write to the caller's own team. Wraps the page-pure Team.SendTeamAnnouncements (imLeagues/BLL/Team.cs:2452), which inserts an OwnerType.Team (=4) Announcement row with UpdatedBy=curUserId. We pass an EMPTY TeamMembersCollection + sendEmail=false, SmsTxt=false so the row is inserted WITHOUT the email/SMS blast to the roster (v1 parity with the ClubSports slice). Returns the created ParticipantAnnouncementOutVO (re-read as the newest team row). NO actor identity is trusted from the body.

Request Information

Parameters

NameDescriptionAdditional information
id
team id (captain's team)

Define this parameter in the request URI.

inVO
{ title, body }

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "body": "sample string 2"
}

application/xml, text/xml

Sample:
<CaptainAnnouncementInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
  <body>sample string 2</body>
  <title>sample string 1</title>
</CaptainAnnouncementInVO>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="title"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="body"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

the created ParticipantAnnouncementOutVO

Response body formats

application/json, text/json

Sample:
{
  "id": 1,
  "title": "sample string 2",
  "body": "sample string 3",
  "postedAt": "sample string 4",
  "updatedBy": "sample string 5"
}

application/xml, text/xml

Sample:
<ParticipantAnnouncementOutVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Output.V3.Views.Mobile.Me">
  <Body>sample string 3</Body>
  <Id>1</Id>
  <PostedAt>sample string 4</PostedAt>
  <Title>sample string 2</Title>
  <UpdatedBy>sample string 5</UpdatedBy>
</ParticipantAnnouncementOutVO>

multipart/form-data

Sample:

Sample not available.