Competition

Retrieves the collection of Competition resources.

Retrieves the collection of Competition resources.

get/competitions

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/competitions
  • Auth: one of:
    • API key in header Authorization
    • HTTP bearer

Query parameters

pageinteger

The collection page number

itemsPerPageinteger

The number of items per page

paginationboolean

Enable or disable pagination

statusstring
status[]string[]
tags.referencestring
tags.reference[]string[]
namestring
competitionTeams.team.idinteger
competitionTeams.team.id[]integer[]
competitionTeams.team.playerTeams.player.idinteger
competitionTeams.team.playerTeams.player.id[]integer[]
sport.idinteger
sport.id[]integer[]
sportCenter.idinteger
sportCenter.id[]integer[]
sportCenter.referenceinteger
sportCenter.reference[]integer[]
order[id]'asc' | 'desc'
order[name]'asc' | 'desc'
order[sportCenter.name]'asc' | 'desc'
order[expectedStartingAt]'asc' | 'desc'
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'
expectedStartingAt[before]string
expectedStartingAt[strictly_before]string
expectedStartingAt[after]string
expectedStartingAt[strictly_after]string
createdAt[before]string
createdAt[strictly_before]string
createdAt[after]string
createdAt[strictly_after]string
updatedAt[before]string
updatedAt[strictly_before]string
updatedAt[after]string
updatedAt[strictly_after]string
visibleboolean

Response

Competition collection

idinteger
namestring
visibleboolean
groupsTotalinteger
twoLeggedboolean
sessionDurationinteger
breakDurationinteger
expectedStartingAtstring date-time nullable
timeSlotsstring[]
timeBetweenRoundsinteger
statusstring
priceinteger

Price without taxes.

teamsLimitNumberinteger nullable
sessionsGeneratedboolean
victoryPointsinteger
defeatPointsinteger
drawPointsinteger
forfeitPointsinteger
withStatsboolean
firstLogoImageUrlstring nullable

Url of the first logo image. To remove, set it to null.

secondLogoImageUrlstring nullable

Url of the second logo image. To remove, set it to null.

foulsForPenaltyinteger nullable

How many fouls should be conceded to get a penalty.

bookingProviderIdinteger nullable
createdAtstring date-time
updatedAtstring date-time
sportCenterManagersEmailstring[]

Example response

[
  {
    "groupsTotal": 1,
    "sessionDuration": 3000,
    "breakDuration": 300,
    "status": "not_played",
    "victoryPoints": 3,
    "drawPoints": 1,
    "reservedFields": [
      {
        "createdAt": "CURRENT_TIMESTAMP",
        "updatedAt": "CURRENT_TIMESTAMP"
      }
    ],
    "sportCenter": {
      "coordinates": [
        0,
        0
      ],
      "visible": true,
      "timeZone": "Europe/Paris",
      "durationChoices": [
        3600,
        5400,
        7200
      ],
      "language": "en",
      "distanceUnite": "km",
      "country": {
        "currency": "EUR"
      },
      "tags": [
        {
          "createdAt": "CURRENT_TIMESTAMP",
          "updatedAt": "CURRENT_TIMESTAMP"
        }
      ],
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "tags": [
      {
        "createdAt": "CURRENT_TIMESTAMP",
        "updatedAt": "CURRENT_TIMESTAMP"
      }
    ],
    "createdAt": "CURRENT_TIMESTAMP",
    "updatedAt": "CURRENT_TIMESTAMP"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.