API | Teams

Contains all the functionality to access team details, and retrieves a paged list of teams by an event, division, status, or paid.

Team Details

Retrieves a team's details including additional data related to the team.

Endpoint

GET http://hockey.exposureevents.com/api/v1/teams

Parameters

Name Type Default Required Description
Id integer The team id.
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Team": {
    "Id": 1393,
    "Name": "Indiana Elite",
    "Gender": 1,
    "Paid": false,
    "Status": 1,
    "Division": {
      "Id": 22,
      "Name": "17",
      "Description": "This is an open division",
      "Gender": 1,
      "Event": {
        "Id": 30,
        "Name": "Exposure Hockey Events",
        "StartDate": "11/17/2017",
        "EndDate": "11/17/2017"
      }
    },
    "Address": {
      "City": "Gilbert",
      "Latitude": 36.1849073,
      "Longitude": -115.1230314
    },
    "Players": [
      {
        "Id": 22,
        "Number": "22",
        "FirstName": "Bob",
        "LastName": "Smith",
        "ExternalPlayerId": "XDLG234L",
        "Address": {
          "StreetAddress": "3934 E Battala Avenue",
          "ExtendedAddress": "Suite 144",
          "City": "Gilbert",
          "StateRegion": "Arizona",
          "PostalCode": "85297"
        },
        "Birthdate": "11/17/2017",
        "HomePhone": "555-555-5555",
        "MobilePhone": "555-555-5555",
        "Email": "noreply@exposureevents.com",
        "Meta": [
          {
            "Name": "T-Shirt Size",
            "Value": "XL"
          }
        ]
      }
    ],
    "Coaches": [
      {
        "Id": 22,
        "Type": 2,
        "FirstName": "Bob",
        "LastName": "Smith",
        "Address": {
          "StreetAddress": "3934 E Battala Avenue",
          "ExtendedAddress": "Suite 144",
          "City": "Gilbert",
          "StateRegion": "Arizona",
          "PostalCode": "85297"
        },
        "HomePhone": "555-555-5555",
        "MobilePhone": "555-555-5555",
        "FaxPhone": "555-555-5555",
        "WorkPhone": "555-555-5555",
        "Email": "noreply@exposureevents.com"
      }
    ],
    "Pools": [
      {
        "Pool": {
          "Id": 100,
          "Name": "A",
          "Label": "Super Pool",
          "Division": {
            "Id": 22,
            "Name": "17"
          }
        },
        "Number": 1
      }
    ]
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Team>
    <Address>
      <City>Gilbert</City>
      <Latitude>36.1849073</Latitude>
      <Longitude>-115.1230314</Longitude>
    </Address>
    <Coaches>
      <Coach>
        <Address>
          <City>Gilbert</City>
          <ExtendedAddress>Suite 144</ExtendedAddress>
          <PostalCode>85297</PostalCode>
          <StateRegion>Arizona</StateRegion>
          <StreetAddress>3934 E Battala Avenue</StreetAddress>
        </Address>
        <Email>noreply@exposureevents.com</Email>
        <FaxPhone>555-555-5555</FaxPhone>
        <FirstName>Bob</FirstName>
        <HomePhone>555-555-5555</HomePhone>
        <Id>22</Id>
        <LastName>Smith</LastName>
        <MobilePhone>555-555-5555</MobilePhone>
        <Type>2</Type>
        <WorkPhone>555-555-5555</WorkPhone>
      </Coach>
    </Coaches>
    <Division>
      <Description>This is an open division</Description>
      <Event>
        <EndDate>11/17/2017</EndDate>
        <Id>30</Id>
        <Name>Exposure Hockey Events</Name>
        <StartDate>11/17/2017</StartDate>
      </Event>
      <Gender>1</Gender>
      <Id>22</Id>
      <Name>17</Name>
    </Division>
    <Gender>1</Gender>
    <Id>1393</Id>
    <Name>Indiana Elite</Name>
    <Paid>false</Paid>
    <Players>
      <Player>
        <Address>
          <City>Gilbert</City>
          <ExtendedAddress>Suite 144</ExtendedAddress>
          <PostalCode>85297</PostalCode>
          <StateRegion>Arizona</StateRegion>
          <StreetAddress>3934 E Battala Avenue</StreetAddress>
        </Address>
        <Birthdate>11/17/2017</Birthdate>
        <Email>noreply@exposureevents.com</Email>
        <ExternalPlayerId>XDLG234L</ExternalPlayerId>
        <FirstName>Bob</FirstName>
        <HomePhone>555-555-5555</HomePhone>
        <Id>22</Id>
        <LastName>Smith</LastName>
        <Meta>
          <Meta>
            <Name>T-Shirt Size</Name>
            <Value>XL</Value>
          </Meta>
        </Meta>
        <MobilePhone>555-555-5555</MobilePhone>
        <Number>22</Number>
      </Player>
    </Players>
    <Pools>
      <TeamPool>
        <Number>1</Number>
        <Pool>
          <Division>
            <Id>22</Id>
            <Name>17</Name>
          </Division>
          <Id>100</Id>
          <Label>Super Pool</Label>
          <Name>A</Name>
        </Pool>
      </TeamPool>
    </Pools>
    <Status>1</Status>
  </Team>
</Response>

Teams

Retrieves a paged list of teams.

Endpoint

GET http://hockey.exposureevents.com/api/v1/teams

Parameters

Name Type Default Required Description
page integer 1
pagesize integer 50
EventId integer The event id of the team.
DivisionId integer The division id of the team.
TeamIds array The ids of one or more teams.
Status enumeration The status of the team.
Paid boolean If supplied, show teams from event settings is ignored
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Teams": {
    "Results": [
      {
        "Id": 1393,
        "Name": "Indiana Elite",
        "Gender": 1,
        "Paid": false,
        "Status": 1,
        "Division": {
          "Id": 22,
          "Name": "17",
          "Description": "This is an open division",
          "Gender": 1,
          "Event": {
            "Id": 30,
            "Name": "Exposure Hockey Events",
            "StartDate": "11/17/2017",
            "EndDate": "11/17/2017"
          }
        },
        "Address": {
          "City": "Gilbert",
          "Latitude": 36.1849073,
          "Longitude": -115.1230314
        },
        "Players": [
          {
            "Id": 22,
            "Number": "22",
            "FirstName": "Bob",
            "LastName": "Smith",
            "ExternalPlayerId": "XDLG234L",
            "Address": {
              "StreetAddress": "3934 E Battala Avenue",
              "ExtendedAddress": "Suite 144",
              "City": "Gilbert",
              "StateRegion": "Arizona",
              "PostalCode": "85297"
            },
            "Birthdate": "11/17/2017",
            "HomePhone": "555-555-5555",
            "MobilePhone": "555-555-5555",
            "Email": "noreply@exposureevents.com",
            "Meta": [
              {
                "Name": "T-Shirt Size",
                "Value": "XL"
              }
            ]
          }
        ],
        "Coaches": [
          {
            "Id": 22,
            "Type": 2,
            "FirstName": "Bob",
            "LastName": "Smith",
            "Address": {
              "StreetAddress": "3934 E Battala Avenue",
              "ExtendedAddress": "Suite 144",
              "City": "Gilbert",
              "StateRegion": "Arizona",
              "PostalCode": "85297"
            },
            "HomePhone": "555-555-5555",
            "MobilePhone": "555-555-5555",
            "FaxPhone": "555-555-5555",
            "WorkPhone": "555-555-5555",
            "Email": "noreply@exposureevents.com"
          }
        ],
        "Pools": [
          {
            "Pool": {
              "Id": 100,
              "Name": "A",
              "Label": "Super Pool",
              "Division": {
                "Id": 22,
                "Name": "17"
              }
            },
            "Number": 1
          }
        ]
      }
    ],
    "Page": 1,
    "PageSize": 50,
    "Total": 1
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Teams>
    <Page>1</Page>
    <PageSize>50</PageSize>
    <Results>
      <Team>
        <Address>
          <City>Gilbert</City>
          <Latitude>36.1849073</Latitude>
          <Longitude>-115.1230314</Longitude>
        </Address>
        <Coaches>
          <Coach>
            <Address>
              <City>Gilbert</City>
              <ExtendedAddress>Suite 144</ExtendedAddress>
              <PostalCode>85297</PostalCode>
              <StateRegion>Arizona</StateRegion>
              <StreetAddress>3934 E Battala Avenue</StreetAddress>
            </Address>
            <Email>noreply@exposureevents.com</Email>
            <FaxPhone>555-555-5555</FaxPhone>
            <FirstName>Bob</FirstName>
            <HomePhone>555-555-5555</HomePhone>
            <Id>22</Id>
            <LastName>Smith</LastName>
            <MobilePhone>555-555-5555</MobilePhone>
            <Type>2</Type>
            <WorkPhone>555-555-5555</WorkPhone>
          </Coach>
        </Coaches>
        <Division>
          <Description>This is an open division</Description>
          <Event>
            <EndDate>11/17/2017</EndDate>
            <Id>30</Id>
            <Name>Exposure Hockey Events</Name>
            <StartDate>11/17/2017</StartDate>
          </Event>
          <Gender>1</Gender>
          <Id>22</Id>
          <Name>17</Name>
        </Division>
        <Gender>1</Gender>
        <Id>1393</Id>
        <Name>Indiana Elite</Name>
        <Paid>false</Paid>
        <Players>
          <Player>
            <Address>
              <City>Gilbert</City>
              <ExtendedAddress>Suite 144</ExtendedAddress>
              <PostalCode>85297</PostalCode>
              <StateRegion>Arizona</StateRegion>
              <StreetAddress>3934 E Battala Avenue</StreetAddress>
            </Address>
            <Birthdate>11/17/2017</Birthdate>
            <Email>noreply@exposureevents.com</Email>
            <ExternalPlayerId>XDLG234L</ExternalPlayerId>
            <FirstName>Bob</FirstName>
            <HomePhone>555-555-5555</HomePhone>
            <Id>22</Id>
            <LastName>Smith</LastName>
            <Meta>
              <Meta>
                <Name>T-Shirt Size</Name>
                <Value>XL</Value>
              </Meta>
            </Meta>
            <MobilePhone>555-555-5555</MobilePhone>
            <Number>22</Number>
          </Player>
        </Players>
        <Pools>
          <TeamPool>
            <Number>1</Number>
            <Pool>
              <Division>
                <Id>22</Id>
                <Name>17</Name>
              </Division>
              <Id>100</Id>
              <Label>Super Pool</Label>
              <Name>A</Name>
            </Pool>
          </TeamPool>
        </Pools>
        <Status>1</Status>
      </Team>
    </Results>
    <Total>1</Total>
    <Totals i:nil="true" />
  </Teams>
</Response>

Create Team

Creates a new division team.

Endpoint

POST http://hockey.exposureevents.com/api/v1/teams

Parameters

Name Type Default Required Description
divisionid integer The division id.
name string Internal notes for a team.
externalteamid string External team ID
gender enumeration The gender of the team.
paid boolean true Marks the team as paid.
status enumeration The event status of the team.
address.city string (100)
address.stateregion string (100)
address.postalcode string (10)
notes string Internal notes for a team.
website string The team website, must start with http://.
twitterhandle string The Twitter handle of the team, exclude @ sign.
abbreviation string

Request


{
  "DivisionId": 1000,
  "Name": "Team Exposure",
  "Gender": 2,
  "Paid": true,
  "Status": 1,
  "Address": {
    "City": "Louisville",
    "StateRegion": "KY",
    "PostalCode": "40205"
  },
  "Notes": "Team needs a refund",
  "Website": "http://hockey.exposureevents.com",
  "TwitterHandle": "exposurebball",
  "Abbreviation": "TE",
  "ExternalTeamId": "45465gG"
}


<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Abbreviation>TE</Abbreviation>
  <Address>
    <City>Louisville</City>
    <PostalCode>40205</PostalCode>
    <StateRegion>KY</StateRegion>
  </Address>
  <DivisionId>1000</DivisionId>
  <ExternalTeamId>45465gG</ExternalTeamId>
  <Gender>2</Gender>
  <Name>Team Exposure</Name>
  <Notes>Team needs a refund</Notes>
  <Paid>true</Paid>
  <Status>1</Status>
  <TwitterHandle>exposurebball</TwitterHandle>
  <Website>http://hockey.exposureevents.com</Website>
</Request>

Response


{
  "Id": 100
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Id>100</Id>
</Response>

Update Team

Updates an existing division team.

Note: Updates will only occur on parameters provided in the request and will ignore updating the other parameters.

Endpoint

PUT http://hockey.exposureevents.com/api/v1/teams

Parameters

Name Type Default Required Description
id integer The team id. The external team ID can be used in place of this.
divisionid integer The division id.
name string Internal notes for a team.
externalteamid string External team ID
gender enumeration The gender of the team.
paid boolean true Marks the team as paid.
status enumeration The event status of the team.
address.city string (100)
address.stateregion string (100)
address.postalcode string (10)
notes string Internal notes for a team.
website string The team website, must start with http://.
twitterhandle string The Twitter handle of the team, exclude @ sign.
abbreviation string

Request


{
  "Id": 100,
  "DivisionId": 1000,
  "Name": "Team Exposure",
  "Gender": 2,
  "Paid": true,
  "Status": 1,
  "Address": {
    "City": "Louisville",
    "StateRegion": "KY",
    "PostalCode": "40205"
  },
  "Notes": "Team needs a refund",
  "Website": "http://hockey.exposureevents.com",
  "TwitterHandle": "exposurebball",
  "Abbreviation": "TE",
  "ExternalTeamId": "45465gG"
}


<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Abbreviation>TE</Abbreviation>
  <Address>
    <City>Louisville</City>
    <PostalCode>40205</PostalCode>
    <StateRegion>KY</StateRegion>
  </Address>
  <DivisionId>1000</DivisionId>
  <ExternalTeamId>45465gG</ExternalTeamId>
  <Gender>2</Gender>
  <Name>Team Exposure</Name>
  <Notes>Team needs a refund</Notes>
  <Paid>true</Paid>
  <Status>1</Status>
  <TwitterHandle>exposurebball</TwitterHandle>
  <Website>http://hockey.exposureevents.com</Website>
  <Id>100</Id>
</Request>

Response


{}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />

YOUTH HOCKEY EVENT, TOURNAMENT AND LEAGUE DIRECTORY Market your event by submitting it to our directory. Submit Event