POST v2/me/teams/{id}/invite

send invitation to members to join his team by team captain or co-captian v2 version, you can send email_type and url for the email of recit

Request Information

Parameters

NameDescriptionAdditional information
id
the id of the team

Define this parameter in the request URI.

invitations
an object include the information of invitations,
            message - message to invite members;
            emails - a list of email adress of members who are invited.
            email_type - the email type you want to send 
            url - the URL that the links in the email will open

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "emails": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "url": "sample string 1",
  "email_type": 0
}

application/xml, text/xml

Sample:
<InviteMemberDtoV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">
  <emails xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </emails>
  <message xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">sample string 1</message>
  <email_type>RECIT</email_type>
  <url>sample string 1</url>
</InviteMemberDtoV2>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

return all emails that the invitation were sent to

Response body formats

application/json, text/json

Sample:
[
  "sample 1",
  "sample 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample 1</string>
  <string>sample 2</string>
</ArrayOfstring>