Skip to content
campaiDeveloper
campai.com

Booking · Tournaments

GET/{organizationId}/{mandateId}/booking/tournaments/{tournamentId}/leftOutViewsReads only

List views that leave a tournament out

Returns the event views that match a tournament by mandate and tags but leave it out, because they list no tournaments or only those with sign-up. Once the tournament is published, its sign-up event is missing there as well.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • tournament.read
Also checked, depending on the request and the records it touches
  • bookingView.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • tournamentIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/leftOutViews' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • viewsobject[]
    4 properties
    • _idid
    • namestring

      1–60 characters

    • stylestring
      group list schedule plan sites tiles matches tables bracket live full
    • tournamentsstring
      all signUp none
Response200
{
  "views": [
    {
      "_id": "000000000000000000000001",
      "name": "string",
      "style": "group",
      "tournaments": "all"
    }
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.