POST v3/me/teams/{id}/challenges/initiate

CAPTAIN — send a challenge FROM the route team TO an opponent in the same league/division. body { acceptorTeamId, availabilityInfo, contactInfo }. Captain-gated on the route (INITIATOR) team — the mandate wants INITIATE gated IsTeamAdmin, which AssertCaptainOfTeam enforces (the BLL's own gate is only IsInTeam). We also confirm the opponent team is a real team in the SAME league as the route team (the eligible-opponent scope). Wraps the page-pure TeamApi.SendChallengeRequest (TeamApi.cs:7250). Returns { success, challengeId }.

Request Information

Parameters

NameDescriptionAdditional information
id
team id (captain's team = initiator)

Define this parameter in the request URI.

inVO
{ acceptorTeamId, availabilityInfo, contactInfo }

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "acceptorTeamId": "sample string 1",
  "availabilityInfo": "sample string 2",
  "contactInfo": "sample string 3"
}

application/xml, text/xml

Sample:
<CaptainChallengeInitiateInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
  <acceptorTeamId>sample string 1</acceptorTeamId>
  <availabilityInfo>sample string 2</availabilityInfo>
  <contactInfo>sample string 3</contactInfo>
</CaptainChallengeInitiateInVO>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

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

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="contactInfo"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

{ success, challengeId } — the new challenge id

Response body formats

application/json, text/json

Sample:
{
  "success": true,
  "challengeId": 2
}

application/xml, text/xml

Sample:
<TeamChallengeInitiateOutVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.VO.Output.Intramural">
  <challengeId>2</challengeId>
  <success>true</success>
</TeamChallengeInitiateOutVO>

multipart/form-data

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

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="challengeId"

2
--MultipartDataMediaFormatterBoundary1q2w3e--