Competition

Replaces the Competition resource.

Replaces the Competition resource.

put/competitions/{id}

Request

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

Path parameters

idstring required

Competition identifier

Request body

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

Price without taxes.

teamsLimitNumberinteger nullable
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
reservedFieldsstring[]
sportCenterstring iri-reference required
tagsstring[]
sportstring iri-reference required

Example request

{
  "groupsTotal": 1,
  "sessionDuration": 3000,
  "breakDuration": 300,
  "victoryPoints": 3,
  "drawPoints": 1,
  "reservedFields": [
    "https://example.com/"
  ],
  "sportCenter": "https://example.com/",
  "tags": [
    "https://example.com/"
  ],
  "sport": "https://example.com/"
}

Response

Competition resource updated

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.