Team

Retrieves the collection of Team resources.

Retrieves the collection of Team resources.

get/teams

Request

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

order[id]'asc' | 'desc'
order[name]'asc' | 'desc'
order[sportCenter.name]'asc' | 'desc'
order[createdAt]'asc' | 'desc'
order[updatedAt]'asc' | 'desc'
namestring
trigramstring
trigram[]string[]
tags.referencestring
tags.reference[]string[]
sportCenter.idinteger
sportCenter.id[]integer[]
playerTeams.player.idinteger
playerTeams.player.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

Response

Team collection

idinteger
namestring required
trigramstring
primaryColorstring
secondaryColorstring
externalDatastring[] nullable
logoImageUrlstring nullable

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

createdAtstring date-time
updatedAtstring date-time

Example response

[
  {
    "primaryColor": "#FFFFFF",
    "secondaryColor": "#FFFFFF",
    "playerTeams": [
      {
        "player": {
          "playerSportCenters": [
            {
              "createdAt": "CURRENT_TIMESTAMP",
              "updatedAt": "CURRENT_TIMESTAMP"
            }
          ],
          "createdAt": "CURRENT_TIMESTAMP",
          "updatedAt": "CURRENT_TIMESTAMP"
        },
        "createdAt": "CURRENT_TIMESTAMP",
        "updatedAt": "CURRENT_TIMESTAMP"
      }
    ],
    "sportCenter": {
      "coordinates": [
        0,
        0
      ],
      "visible": true,
      "pedroVersionTarget": "undefined",
      "timeZone": "Europe/Paris",
      "durationChoices": [
        3600,
        5400,
        7200
      ],
      "language": "en",
      "distanceUnite": "km",
      "country": {
        "currency": "EUR"
      },
      "tablets": [
        {
          "createdAt": "CURRENT_TIMESTAMP",
          "updatedAt": "CURRENT_TIMESTAMP"
        }
      ],
      "tags": [
        {
          "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.