POST Event/GetEventsAndTournaments

Gets all the active event and tournaments for a sport

Request Information

URI Parameters

None.

Body Parameters

ApiActiveEventsAndTournamentsRequestFilter
NameDescriptionTypeAdditional information
sportID

Gets or sets the sport identifier.

integer

None.

endDate

date

None.

isInPlay

Gets or sets a value indicating whether this nullable instance is in play.

boolean

None.

eventStatusIDs

Gets or sets the event status IDs.

Collection of integer

None.

userID

Gets or sets the user identifier.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "sportID": 1,
  "endDate": "2025-12-06T00:00:00+02:00",
  "isInPlay": true,
  "eventStatusIDs": [
    1,
    2
  ],
  "userID": 3
}

application/xml, text/xml

Sample:
<ApiActiveEventsAndTournamentsRequestFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
  <userID>3</userID>
  <endDate>2025-12-06T00:00:00+02:00</endDate>
  <eventStatusIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:short>1</d2p1:short>
    <d2p1:short>2</d2p1:short>
  </eventStatusIDs>
  <isInPlay>true</isInPlay>
  <sportID>1</sportID>
</ApiActiveEventsAndTournamentsRequestFilter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiActiveEventsAndTournamentsResponse
NameDescriptionTypeAdditional information
ResponseObject

Gets or sets the response object.

Collection of ApiActiveEventsAndTournaments

None.

ResponseType

Gets or sets the type of the response.

integer

None.

ResponseMessage

Gets or sets the response message.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": [
    {
      "a": 1,
      "b": "sample string 2",
      "c": 3,
      "d": "2025-12-06T06:56:44.8318478+02:00",
      "e": "sample string 5"
    },
    {
      "a": 1,
      "b": "sample string 2",
      "c": 3,
      "d": "2025-12-06T06:56:44.8318478+02:00",
      "e": "sample string 5"
    }
  ],
  "ResponseType": 1,
  "ResponseMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ApiActiveEventsAndTournamentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
  <ResponseMessage>sample string 2</ResponseMessage>
  <ResponseType>1</ResponseType>
  <ResponseObject>
    <ApiActiveEventsAndTournaments>
      <a>1</a>
      <b>sample string 2</b>
      <c>3</c>
      <d>2025-12-06T06:56:44.8318478+02:00</d>
      <e>sample string 5</e>
    </ApiActiveEventsAndTournaments>
    <ApiActiveEventsAndTournaments>
      <a>1</a>
      <b>sample string 2</b>
      <c>3</c>
      <d>2025-12-06T06:56:44.8318478+02:00</d>
      <e>sample string 5</e>
    </ApiActiveEventsAndTournaments>
  </ResponseObject>
</ApiActiveEventsAndTournamentsResponse>