FiveSession

Replaces the FiveSession resource.

Replaces the FiveSession resource.

put/five_sessions/{fiveId}

Request

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

Path parameters

fiveIdstring required

FiveSession identifier

Request body

fiveIdinteger required
statusstring
action'update' | 'delete' nullable

Action to perform on this fiveSession.

startedAtstring date-time nullable
endedAtstring date-time nullable

Example request

{
  "status": "not_played"
}

Response

FiveSession resource updated

idinteger
namestring nullable
typestring
fiveIdinteger required
bookingIdinteger nullable
statusstring
startedAtstring date-time nullable
localStartedAtstring date-time nullable
endedAtstring date-time nullable
localEndedAtstring date-time nullable
createdAtstring date-time
updatedAtstring date-time
gameSheetUrlstring

Example response

{
  "type": "standard",
  "status": "not_played",
  "field": {
    "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.