Snack

Creates a Snack resource.

Creates a Snack resource.

post/snacks/{id}

Request

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

Path parameters

idstring required

Snack identifier

Response

Snack resource created

idinteger
namestring required
descriptionstring nullable
imageUrlstring nullable

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

availableboolean
createdAtstring date-time
updatedAtstring date-time
referencestring

Example response

{
  "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"
  },
  "createdAt": "CURRENT_TIMESTAMP",
  "updatedAt": "CURRENT_TIMESTAMP"
}

Changes

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