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 https://waterpolo.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.
{
  "Division": {
    "Id": 120,
    "Name": "17",
    "Description": "This is an open division.",
    "Gender": 1,
    "Order": 1,
    "Event": {
      "Id": 30,
      "Name": "Exposure Water Polo Events",
      "StartDate": "12/21/2024",
      "EndDate": "12/21/2024"
    },
    "Settings": {
      "EnableRegistration": false,
      "RosterLimit": 12,
      "RegistrationStatus": 1,
      "ShowStandings": false,
      "ShowSchedule": false,
      "ShowBrackets": false,
      "ShowParticipants": false
    },
    "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": "Teams",
        "Description": "Super Teams",
        "Url": "https://waterpolo.exposureevents.com/assets/documents/1145.xls",
        "DateModified": "12/21/2024 9:38 AM",
        "DateCreated": "12/21/2024 9:38 AM"
      }
    ],
    "Reports": [
      {
        "Name": "Teams",
        "Description": "Division participating teams.",
        "Url": "https://waterpolo.exposureevents.com/divisions/teams?divisionid=120",
        "Type": 3,
        "DateModified": "12/21/2024 9:38 AM"
      }
    ],
    "Brackets": [
      {
        "Id": 13,
        "Name": "Championship",
        "Results": [
          {
            "Name": "Indiana Elite",
            "Images": [
              {
                "Name": "Champions",
                "Url": "https://waterpolo.exposureevents.com/assets/images/1206"
              }
            ]
          }
        ],
        "DateModified": "12/21/2024 9:38 AM"
      }
    ]
  }
}
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Division>
    <Assets>
      <Asset>
        <DateCreated>12/21/2024 9:38 AM</DateCreated>
        <DateModified>12/21/2024 9:38 AM</DateModified>
        <Description>Super Teams</Description>
        <Id>1145</Id>
        <Name>Teams</Name>
        <Url>https://waterpolo.exposureevents.com/assets/documents/1145.xls</Url>
      </Asset>
    </Assets>
    <Brackets>
      <Bracket>
        <DateModified>12/21/2024 9:38 AM</DateModified>
        <Id>13</Id>
        <Name>Championship</Name>
        <Results>
          <Result>
            <Images>
              <Image>
                <Name>Champions</Name>
                <Url>https://waterpolo.exposureevents.com/assets/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>12/21/2024</EndDate>
      <Id>30</Id>
      <Name>Exposure Water Polo Events</Name>
      <StartDate>12/21/2024</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>12/21/2024 9:38 AM</DateModified>
        <Description>Division participating teams.</Description>
        <Name>Teams</Name>
        <Type>3</Type>
        <Url>https://waterpolo.exposureevents.com/divisions/teams?divisionid=120</Url>
      </Report>
    </Reports>
    <Settings>
      <EnableRegistration>false</EnableRegistration>
      <RegistrationStatus>1</RegistrationStatus>
      <RosterLimit>12</RosterLimit>
      <ShowBrackets>false</ShowBrackets>
      <ShowParticipants>false</ShowParticipants>
      <ShowSchedule>false</ShowSchedule>
      <ShowStandings>false</ShowStandings>
    </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 https://waterpolo.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.
{
  "Divisions": {
    "Results": [
      {
        "Id": 120,
        "Name": "17",
        "Description": "This is an open division.",
        "Gender": 1,
        "Order": 1,
        "Event": {
          "Id": 30,
          "Name": "Exposure Water Polo Events",
          "StartDate": "12/21/2024",
          "EndDate": "12/21/2024"
        },
        "Settings": {
          "EnableRegistration": false,
          "RosterLimit": 12,
          "RegistrationStatus": 1,
          "ShowStandings": false,
          "ShowSchedule": false,
          "ShowBrackets": false,
          "ShowParticipants": false
        },
        "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": "Teams",
            "Description": "Super Teams",
            "Url": "https://waterpolo.exposureevents.com/assets/documents/1145.xls",
            "DateModified": "12/21/2024 9:38 AM",
            "DateCreated": "12/21/2024 9:38 AM"
          }
        ],
        "Reports": [
          {
            "Name": "Teams",
            "Description": "Division participating teams.",
            "Url": "https://waterpolo.exposureevents.com/divisions/teams?divisionid=120",
            "Type": 3,
            "DateModified": "12/21/2024 9:38 AM"
          }
        ],
        "Brackets": [
          {
            "Id": 13,
            "Name": "Championship",
            "Results": [
              {
                "Name": "Indiana Elite",
                "Images": [
                  {
                    "Name": "Champions",
                    "Url": "https://waterpolo.exposureevents.com/assets/images/1206"
                  }
                ]
              }
            ],
            "DateModified": "12/21/2024 9:38 AM"
          }
        ]
      }
    ],
    "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>12/21/2024 9:38 AM</DateCreated>
            <DateModified>12/21/2024 9:38 AM</DateModified>
            <Description>Super Teams</Description>
            <Id>1145</Id>
            <Name>Teams</Name>
            <Url>https://waterpolo.exposureevents.com/assets/documents/1145.xls</Url>
          </Asset>
        </Assets>
        <Brackets>
          <Bracket>
            <DateModified>12/21/2024 9:38 AM</DateModified>
            <Id>13</Id>
            <Name>Championship</Name>
            <Results>
              <Result>
                <Images>
                  <Image>
                    <Name>Champions</Name>
                    <Url>https://waterpolo.exposureevents.com/assets/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>12/21/2024</EndDate>
          <Id>30</Id>
          <Name>Exposure Water Polo Events</Name>
          <StartDate>12/21/2024</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>12/21/2024 9:38 AM</DateModified>
            <Description>Division participating teams.</Description>
            <Name>Teams</Name>
            <Type>3</Type>
            <Url>https://waterpolo.exposureevents.com/divisions/teams?divisionid=120</Url>
          </Report>
        </Reports>
        <Settings>
          <EnableRegistration>false</EnableRegistration>
          <RegistrationStatus>1</RegistrationStatus>
          <RosterLimit>12</RosterLimit>
          <ShowBrackets>false</ShowBrackets>
          <ShowParticipants>false</ShowParticipants>
          <ShowSchedule>false</ShowSchedule>
          <ShowStandings>false</ShowStandings>
        </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>
  </Divisions>
</Response>

Create Division

Creates a new division.

Endpoint

POST https://waterpolo.exposureevents.com/api/v1/divisions

Parameters

Name Type Default Required Description
eventid integer The event id.
name string The name of the division.
description string The description of the division.
order integer The order of the division.
active boolean true Activate division.
{
  "EventId": 1000,
  "Name": "12th Grade",
  "Active": false
}
<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Active>false</Active>
  <EventId>1000</EventId>
  <Name>12th Grade</Name>
</Request>
{
  "Id": 100
}
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Id>100</Id>
</Response>

Update Division

Updates an existing division.

Endpoint

PUT https://waterpolo.exposureevents.com/api/v1/divisions

Parameters

Name Type Default Required Description
id integer The division id.
name string The name of the division.
description string The description of the division.
order integer The order of the division.
active boolean true Activate division.
Updates will only occur on parameters provided in the request and will ignore updating the other parameters.
{
  "Id": 100,
  "Name": "12th Grade",
  "Active": false
}
<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Active>false</Active>
  <Name>12th Grade</Name>
  <Id>100</Id>
</Request>
{}
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
WATER POLO EVENT, TOURNAMENT AND LEAGUE MARKETING Market your event now! Submit Event