POST v2/networks/{networkid}/teams/{id}/members/addnew

[Admin User Permission Required] add new member to team by admin

Request Information

Parameters

NameDescriptionAdditional information
userInfo
user info

Define this parameter in the request body.

id
team id

Define this parameter in the request URI.

networkid
network id

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "non_binary": true,
  "waiver_option": 0,
  "first_name": "sample string 1",
  "last_name": "sample string 2",
  "email": "sample string 3",
  "password": "sample string 4",
  "gender": "sample string 5",
  "year_in_school": "sample string 6",
  "grad_year": "sample string 7",
  "dob": "sample string 8",
  "network_id": "sample string 9",
  "answers": [
    {
      "id": 1,
      "answer": "sample string 2"
    },
    {
      "id": 1,
      "answer": "sample string 2"
    },
    {
      "id": 1,
      "answer": "sample string 2"
    }
  ],
  "as_join_request": true,
  "request_message": "sample string 11",
  "activate_url": "sample string 12",
  "email_type": 0
}

application/xml, text/xml

Sample:
<AddNewMemberInDtoV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
  <activate_url xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 12</activate_url>
  <answers xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">
    <d2p1:QuestionAnswerDto>
      <d2p1:answer>sample string 2</d2p1:answer>
      <d2p1:id>1</d2p1:id>
    </d2p1:QuestionAnswerDto>
    <d2p1:QuestionAnswerDto>
      <d2p1:answer>sample string 2</d2p1:answer>
      <d2p1:id>1</d2p1:id>
    </d2p1:QuestionAnswerDto>
    <d2p1:QuestionAnswerDto>
      <d2p1:answer>sample string 2</d2p1:answer>
      <d2p1:id>1</d2p1:id>
    </d2p1:QuestionAnswerDto>
  </answers>
  <as_join_request xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">true</as_join_request>
  <dob xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 8</dob>
  <email xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 3</email>
  <email_type xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">RECIT</email_type>
  <first_name xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 1</first_name>
  <gender xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 5</gender>
  <grad_year xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 7</grad_year>
  <last_name xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 2</last_name>
  <network_id xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 9</network_id>
  <non_binary xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">true</non_binary>
  <password xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 4</password>
  <request_message xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 11</request_message>
  <year_in_school xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input.V2">sample string 6</year_in_school>
  <waiver_option>Acceptable</waiver_option>
</AddNewMemberInDtoV2>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "authorization": {
    "access_token": "sample string 1",
    "refresh_token": "sample string 2"
  },
  "need_complete_registration": true,
  "email": "sample string 1",
  "dob": "sample string 2",
  "gender": "sample string 3",
  "network": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "year_in_school": "sample string 4",
  "grad_year": "sample string 5",
  "active": true,
  "facebook_id": "sample string 7",
  "answers": [
    {
      "id": 1,
      "answer": "sample string 2"
    },
    {
      "id": 1,
      "answer": "sample string 2"
    },
    {
      "id": 1,
      "answer": "sample string 2"
    }
  ],
  "id": "sample string 8",
  "first_name": "sample string 9",
  "last_name": "sample string 10",
  "avatar_url": "sample string 11"
}

application/xml, text/xml

Sample:
<AuthenticatedMemberDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
  <avatar_url>sample string 11</avatar_url>
  <first_name>sample string 9</first_name>
  <id>sample string 8</id>
  <last_name>sample string 10</last_name>
  <active>true</active>
  <answers>
    <QuestionAnswerDto>
      <answer>sample string 2</answer>
      <id>1</id>
    </QuestionAnswerDto>
    <QuestionAnswerDto>
      <answer>sample string 2</answer>
      <id>1</id>
    </QuestionAnswerDto>
    <QuestionAnswerDto>
      <answer>sample string 2</answer>
      <id>1</id>
    </QuestionAnswerDto>
  </answers>
  <dob>sample string 2</dob>
  <email>sample string 1</email>
  <facebook_id>sample string 7</facebook_id>
  <gender>sample string 3</gender>
  <grad_year>sample string 5</grad_year>
  <network>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </network>
  <year_in_school>sample string 4</year_in_school>
  <authorization>
    <access_token>sample string 1</access_token>
    <refresh_token>sample string 2</refresh_token>
  </authorization>
  <need_complete_registration>true</need_complete_registration>
</AuthenticatedMemberDto>