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://baseball.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 Baseball Events",
        "StartDate": "10/20/2017",
        "EndDate": "10/20/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": "10/20/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>10/20/2017</EndDate>
        <Id>30</Id>
        <Name>Exposure Baseball Events</Name>
        <StartDate>10/20/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>10/20/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://baseball.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 Baseball Events",
            "StartDate": "10/20/2017",
            "EndDate": "10/20/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": "10/20/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>10/20/2017</EndDate>
            <Id>30</Id>
            <Name>Exposure Baseball Events</Name>
            <StartDate>10/20/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>10/20/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>

Update Team

Updates an existing team.

Endpoint

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

Parameters

Name Type Default Required Description
id integer The team id.
status enumeration The status of the team.
notes string Internal notes for a team.

Request


{
  "Id": 64,
  "Status": 1,
  "Notes": "Team needs a refund"
}


<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Id>64</Id>
  <Notes>Team needs a refund</Notes>
  <Status>1</Status>
</Request>

Response


{}


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

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