API | Divisions

Contains functionality to access division details, and retrieves a paged list of divisions with an option to include additional data related to the division.

Division Details

Retrieves division's details including additional data related to the division.

Endpoint

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

Parameters

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

Response


{
  "Division": {
    "Id": 120,
    "Name": "17",
    "Description": "This is an open division.",
    "Gender": 1,
    "Order": 1,
    "Event": {
      "Id": 30,
      "Name": "Exposure Hockey Events",
      "StartDate": "11/17/2017",
      "EndDate": "11/17/2017"
    },
    "Settings": {
      "EnableRegistration": false,
      "RosterLimit": 12,
      "RegistrationStatus": 1
    },
    "Prices": [
      {
        "Id": 35,
        "Type": 1,
        "Name": "Tournament Fee",
        "Amount": 200.0,
        "Description": "Early bird special"
      }
    ],
    "Teams": [
      {
        "Id": 1393,
        "ExternalTeamId": "XDLG234L",
        "Name": "Indiana Elite",
        "Gender": 1,
        "Paid": false,
        "Status": 1,
        "Address": {
          "City": "Gilbert",
          "Latitude": 36.1849073,
          "Longitude": -115.1230314
        }
      }
    ],
    "Assets": [
      {
        "Id": 1145,
        "Name": "Pools",
        "Description": "Super Pools",
        "Url": "http://hockey.exposureevents.com/assets/documents/1145.xls",
        "DateModified": "11/17/2017 11:31 PM",
        "DateCreated": "11/17/2017 11:31 PM"
      }
    ],
    "Reports": [
      {
        "Name": "Teams",
        "Description": "Division participating teams.",
        "Url": "http://hockey.exposureevents.com/divisions/teams?divisionid=120",
        "Type": 3,
        "DateModified": "11/17/2017 11:31 PM"
      }
    ],
    "Brackets": [
      {
        "Id": 13,
        "Name": "Championship",
        "Results": [
          {
            "Name": "Indiana Elite",
            "Images": [
              {
                "Name": "Champions",
                "Url": "http://hockey.exposureevents.comassets/images/1206"
              }
            ]
          }
        ],
        "DateModified": "11/17/2017 11:31 PM"
      }
    ]
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Division>
    <Assets>
      <Asset>
        <DateCreated>11/17/2017 11:31 PM</DateCreated>
        <DateModified>11/17/2017 11:31 PM</DateModified>
        <Description>Super Pools</Description>
        <Id>1145</Id>
        <Name>Pools</Name>
        <Url>http://hockey.exposureevents.com/assets/documents/1145.xls</Url>
      </Asset>
    </Assets>
    <Brackets>
      <Bracket>
        <DateModified>11/17/2017 11:31 PM</DateModified>
        <Id>13</Id>
        <Name>Championship</Name>
        <Results>
          <Result>
            <Images>
              <Image>
                <Name>Champions</Name>
                <Url>http://hockey.exposureevents.comassets/images/1206</Url>
              </Image>
            </Images>
            <Name>Indiana Elite</Name>
          </Result>
        </Results>
        <Url i:nil="true" />
      </Bracket>
    </Brackets>
    <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>120</Id>
    <Name>17</Name>
    <Order>1</Order>
    <Prices>
      <Price>
        <Amount>200</Amount>
        <Description>Early bird special</Description>
        <Id>35</Id>
        <Name>Tournament Fee</Name>
        <Type>1</Type>
      </Price>
    </Prices>
    <Reports>
      <Report>
        <DateModified>11/17/2017 11:31 PM</DateModified>
        <Description>Division participating teams.</Description>
        <Name>Teams</Name>
        <Type>3</Type>
        <Url>http://hockey.exposureevents.com/divisions/teams?divisionid=120</Url>
      </Report>
    </Reports>
    <Settings>
      <EnableRegistration>false</EnableRegistration>
      <RegistrationStatus>1</RegistrationStatus>
      <RosterLimit>12</RosterLimit>
    </Settings>
    <Teams>
      <Team>
        <Address>
          <City>Gilbert</City>
          <Latitude>36.1849073</Latitude>
          <Longitude>-115.1230314</Longitude>
        </Address>
        <ExternalTeamId>XDLG234L</ExternalTeamId>
        <Gender>1</Gender>
        <Id>1393</Id>
        <Name>Indiana Elite</Name>
        <Paid>false</Paid>
        <Status>1</Status>
      </Team>
    </Teams>
  </Division>
</Response>

Divisions

Retrieves a paged list of active event divisions including additional data related to the division.

Endpoint

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

Parameters

Name Type Default Required Description
page integer 1
pagesize integer 50
eventid integer The event id of the division.
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Divisions": {
    "Results": [
      {
        "Id": 120,
        "Name": "17",
        "Description": "This is an open division.",
        "Gender": 1,
        "Order": 1,
        "Event": {
          "Id": 30,
          "Name": "Exposure Hockey Events",
          "StartDate": "11/17/2017",
          "EndDate": "11/17/2017"
        },
        "Settings": {
          "EnableRegistration": false,
          "RosterLimit": 12,
          "RegistrationStatus": 1
        },
        "Prices": [
          {
            "Id": 35,
            "Type": 1,
            "Name": "Tournament Fee",
            "Amount": 200.0,
            "Description": "Early bird special"
          }
        ],
        "Teams": [
          {
            "Id": 1393,
            "ExternalTeamId": "XDLG234L",
            "Name": "Indiana Elite",
            "Gender": 1,
            "Paid": false,
            "Status": 1,
            "Address": {
              "City": "Gilbert",
              "Latitude": 36.1849073,
              "Longitude": -115.1230314
            }
          }
        ],
        "Assets": [
          {
            "Id": 1145,
            "Name": "Pools",
            "Description": "Super Pools",
            "Url": "http://hockey.exposureevents.com/assets/documents/1145.xls",
            "DateModified": "11/17/2017 11:31 PM",
            "DateCreated": "11/17/2017 11:31 PM"
          }
        ],
        "Reports": [
          {
            "Name": "Teams",
            "Description": "Division participating teams.",
            "Url": "http://hockey.exposureevents.com/divisions/teams?divisionid=120",
            "Type": 3,
            "DateModified": "11/17/2017 11:31 PM"
          }
        ],
        "Brackets": [
          {
            "Id": 13,
            "Name": "Championship",
            "Results": [
              {
                "Name": "Indiana Elite",
                "Images": [
                  {
                    "Name": "Champions",
                    "Url": "http://hockey.exposureevents.comassets/images/1206"
                  }
                ]
              }
            ],
            "DateModified": "11/17/2017 11:31 PM"
          }
        ]
      }
    ],
    "Page": 1,
    "PageSize": 50,
    "Total": 1
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Divisions>
    <Page>1</Page>
    <PageSize>50</PageSize>
    <Results>
      <Division>
        <Assets>
          <Asset>
            <DateCreated>11/17/2017 11:31 PM</DateCreated>
            <DateModified>11/17/2017 11:31 PM</DateModified>
            <Description>Super Pools</Description>
            <Id>1145</Id>
            <Name>Pools</Name>
            <Url>http://hockey.exposureevents.com/assets/documents/1145.xls</Url>
          </Asset>
        </Assets>
        <Brackets>
          <Bracket>
            <DateModified>11/17/2017 11:31 PM</DateModified>
            <Id>13</Id>
            <Name>Championship</Name>
            <Results>
              <Result>
                <Images>
                  <Image>
                    <Name>Champions</Name>
                    <Url>http://hockey.exposureevents.comassets/images/1206</Url>
                  </Image>
                </Images>
                <Name>Indiana Elite</Name>
              </Result>
            </Results>
            <Url i:nil="true" />
          </Bracket>
        </Brackets>
        <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>120</Id>
        <Name>17</Name>
        <Order>1</Order>
        <Prices>
          <Price>
            <Amount>200</Amount>
            <Description>Early bird special</Description>
            <Id>35</Id>
            <Name>Tournament Fee</Name>
            <Type>1</Type>
          </Price>
        </Prices>
        <Reports>
          <Report>
            <DateModified>11/17/2017 11:31 PM</DateModified>
            <Description>Division participating teams.</Description>
            <Name>Teams</Name>
            <Type>3</Type>
            <Url>http://hockey.exposureevents.com/divisions/teams?divisionid=120</Url>
          </Report>
        </Reports>
        <Settings>
          <EnableRegistration>false</EnableRegistration>
          <RegistrationStatus>1</RegistrationStatus>
          <RosterLimit>12</RosterLimit>
        </Settings>
        <Teams>
          <Team>
            <Address>
              <City>Gilbert</City>
              <Latitude>36.1849073</Latitude>
              <Longitude>-115.1230314</Longitude>
            </Address>
            <ExternalTeamId>XDLG234L</ExternalTeamId>
            <Gender>1</Gender>
            <Id>1393</Id>
            <Name>Indiana Elite</Name>
            <Paid>false</Paid>
            <Status>1</Status>
          </Team>
        </Teams>
      </Division>
    </Results>
    <Total>1</Total>
    <Totals i:nil="true" />
  </Divisions>
</Response>

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