Skip to content
campaiDeveloper
campai.com

Booking · Views

POST/{organizationId}/{mandateId}/booking/views/tournament/{viewId}

Update tournament view

Updates a specific tournament view for a given mandate. Search, tags, mandates and past or canceled tournaments only matter for the style tiles; tournamentSettings tells what the other styles show of which tournament.

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
  • bookingView.edit

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • viewIdidrequired

Body

Content-Type: application/json

  • namestringrequired

    1–60 characters

  • stylestringrequired
    tiles matches tables bracket live full
  • customCssByStyleobject
    6 properties
    • tilesstring

      at most 50000 characters

    • matchesstring

      at most 50000 characters

    • tablesstring

      at most 50000 characters

    • bracketstring

      at most 50000 characters

    • livestring

      at most 50000 characters

    • fullstring

      at most 50000 characters

  • descriptionstring

    at most 160 characters · default ""

  • pageSizeinteger

    at most 100 · default 20

  • allMandatesboolean

    default false

  • tagsstring[]

    at most 20 items · each 1–40 characters

  • allowSearchboolean

    default false

  • hideCanceledboolean

    default false

  • maxWidthintegernullable

    320–3840

  • allowPastEventsboolean

    default false

  • tournamentSettingsobjectrequired
    13 properties
    • tournamentidrequirednullable
    • divisionstringrequirednullable

      exactly 10 characters

    • groupstringrequirednullable

      exactly 10 characters

    • teamidrequirednullable
    • fieldstringrequirednullable

      exactly 10 characters

    • groupBystringrequired
      time field group
    • allowFiltersbooleanrequired
    • showImagesbooleanrequired
    • showFieldbooleanrequired
    • showRefereesbooleanrequired
    • showPlacementsbooleanrequired
    • matchCountintegerrequired

      1–20

    • tabsstring[]required

      at least 1 items

      info matches tables bracket teams
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/views/tournament/YOUR_VIEW_ID' \
  --header 'X-API-Key: YOUR_API_KEY'

No request that worked has been recorded yet, so the body is not shown.

Response

200 Successful response

No response body is specified.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.