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

MEMBER — post a team announcement. The legacy team home lets ANY approved team member post (gate isTeamMember || isSportAdmin, SPA team/home.html:376); the captain route above is stricter than legacy, so this member-gated twin restores parity. Gate: on the caller's approved roster (CommonHelper.IsInTeam — the same check the legacy VM's isTeamMember uses) OR team-admin/sport-admin (CommonHelper.IsTeamAdmin). Same page-pure write; curUserId from the token.

Request Information

Parameters

NameDescriptionAdditional information
id
team id (the caller'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.