CompetitionTeam

Retrieves the collection of CompetitionTeam resources.

Retrieves the collection of CompetitionTeam resources.

get/competition_teams

Request

  • Base URL: https://api.spash.com
  • URL: https://api.spash.com/competition_teams
  • 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

competition.tags.referencestring
competition.tags.reference[]string[]
team.playerTeams.player.idinteger
team.playerTeams.player.id[]integer[]
competition.idinteger
competition.id[]integer[]
team.idinteger
team.id[]integer[]
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
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'

Response

CompetitionTeam collection

idinteger
groupReferencestring nullable
rankinginteger
victoriesTotalinteger
drawsTotalinteger
defeatsTotalinteger
pointsTotalinteger
goalsForTotalinteger
goalsAgainstTotalinteger
differenceinteger
bonusinteger
secondGoalsForTotalinteger
secondGoalsAgainstTotalinteger
secondDifferenceinteger
forfeitboolean
createdAtstring date-time
updatedAtstring date-time

Example response

[
  {
    "groupReference": "A",
    "ranking": 1,
    "competition": {
      "sessionDuration": 3000,
      "breakDuration": 300,
      "status": "not_played",
      "createdAt": "CURRENT_TIMESTAMP",
      "updatedAt": "CURRENT_TIMESTAMP"
    },
    "team": {
      "primaryColor": "#FFFFFF",
      "secondaryColor": "#FFFFFF",
      "playerTeams": [
        {
          "createdAt": "CURRENT_TIMESTAMP",
          "updatedAt": "CURRENT_TIMESTAMP"
        }
      ],
      "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.