Skip to content
campaiDeveloper
campai.com

Booking · Tournaments

POST/{organizationId}/{mandateId}/booking/tournaments/{tournamentId}/registration/events/listReads only

List events that can take the sign-up for a tournament

Returns the events of the mandate that could take the sign-up for a tournament: those ahead with a single date that teams register for, or persons where individuals compete, that are neither canceled nor archived and belong to no tournament yet.

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
  • event.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • tournamentIdidrequired

Body

Content-Type: application/json

  • sortobject of string

    The keys to sort by, each with its direction. Sorting lists every key.

    asc desc
  • limitinteger

    0–100 · default 50

  • offsetinteger

    at least 0 · default 0

  • returnCountboolean

    default false

  • searchTermstring
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/tournaments/YOUR_TOURNAMENT_ID/registration/events/list' \
  --header 'X-API-Key: YOUR_API_KEY'

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

Sorting

sort takes the keys to sort by, each with asc or desc.

44 sort keys
Key
_id
period.from
period.to
period.status
period.warning
info.title
info.image.resource
info.image.fileName
info.image.contentType
info.image.fileSizeBytes
info.color
info.place.type
info.place.resource.site
info.place.resource.siteName
info.place.resource.siteAddress.country
info.place.resource.siteAddress.state
info.place.resource.siteAddress.zip
info.place.resource.siteAddress.city
info.place.resource.siteAddress.addressLine
info.place.resource.siteAddress.details1
info.place.resource.siteAddress.details2
info.place.resource.resource
info.place.resource.resourceName
info.place.resource.quantity
info.place.address.country
info.place.address.state
info.place.address.zip
info.place.address.city
info.place.address.addressLine
info.place.address.details1
info.place.address.details2
info.place.location.latitude
info.place.location.longitude
info.place.online.url
info.place.online.instructions
schedule.timezone
offer.mode
offer.attendeeMode
offer.displaySettings.seatsAvailableThreshold
offer.displaySettings.unlisted
offer.rates
statistics.confirmed
statistics.checkedIn
statistics.waitlisted

Response

200 Successful response

Content-Type: application/json

  • countinteger

    at least 0

  • eventsobject[]
    6 properties
    • _idid
    • periodobject
      4 properties
      • fromstring · date-time
      • tostring · date-time
      • statusstring
        available blockedResource blockedCalendar
      • warningstring
        noAvailableExtendedPeriod
    • infoobject
      4 properties
      • titlestring

        1–60 characters

      • imageobjectnullable
        4 properties
        • resourcestring

          at least 1 characters

        • fileNamestring

          at most 128 characters

        • contentTypestring

          at most 75 characters

        • fileSizeBytesinteger

          at least 0

      • colorstring
      • placeobjectnullable
        5 properties
        • typestring
          resource address online
        • resourceobject
          6 properties
          • siteid
          • siteNamestring

            at least 1 characters

          • siteAddressobject
            7 properties
            • countrystring
            • statestring
            • zipstring

              at most 10 characters

            • citystring

              at most 45 characters

            • addressLinestring

              at most 45 characters

            • details1string

              at most 45 characters

            • details2string

              at most 45 characters

          • resourceid
          • resourceNamestring
          • quantityinteger
        • addressobject
          7 properties
          • countrystring
          • statestring
          • zipstring

            at most 10 characters

          • citystring

            at most 45 characters

          • addressLinestring

            at most 45 characters

          • details1string

            at most 45 characters

          • details2string

            at most 45 characters

        • locationobjectnullable
          2 properties
          • latitudenumber

            -90–90

          • longitudenumber

            -180–180

        • onlineobject
          2 properties
          • urlstring · uri

            at most 300 characters

          • instructionsstring

            at most 400 characters

    • scheduleobject
      1 property
      • timezonestring

        at least 1 characters

    • offerobject
      4 properties
      • modestring
        disabled private protected public
      • attendeeModestring
        multiple single team rate
      • displaySettingsobject
        2 properties
        • seatsAvailableThresholdinteger

          at least 0

        • unlistedboolean
      • ratesobject[]
        4 properties
        • idstring

          exactly 8 characters

        • namestring

          1–50 characters

        • availableAmountintegernullable
        • chargeobject
          3 properties
          • typestring
            price punchCard
          • priceobjectnullable
            12 properties
            • isNetboolean
            • priceinteger

              0–9999999999

            • priceNetinteger

              0–9999999999

            • priceGrossinteger

              0–9999999999

            • taxCodestringnullable

              1–5 characters

            • taxRatenumbernullable

              at most 99

            • accountinteger

              1–999999999

            • costCenter1numbernullable

              1–99999999

            • costCenter2numbernullable

              1–99999999

            • dimensionsobject[]
              2 properties
              • dimensionIdid
              • optionKeystring

                1–64 characters

            • minSlotPriceinteger

              at most 9999999999

            • maxSlotPriceinteger

              at most 9999999999

          • punchCardobjectnullable
            4 properties
            • punchCardid
            • punchCardNamestring
            • punchCardPriceobject
              12 properties
              • isNetboolean
              • priceinteger

                0–9999999999

              • priceNetinteger

                0–9999999999

              • priceGrossinteger

                0–9999999999

              • taxCodestringnullable

                1–5 characters

              • taxRatenumbernullable

                at most 99

              • accountinteger

                1–999999999

              • costCenter1numbernullable

                1–99999999

              • costCenter2numbernullable

                1–99999999

              • dimensionsobject[]
                2 properties
                • dimensionIdid
                • optionKeystring

                  1–64 characters

              • minSlotPriceinteger

                at most 9999999999

              • maxSlotPriceinteger

                at most 9999999999

            • pointsinteger
    • statisticsobject
      3 properties
      • confirmedinteger

        at least 0

      • checkedIninteger

        at least 0

      • waitlistedinteger

        at least 0

Response200
{
  "count": 0,
  "events": [
    {
      "_id": "000000000000000000000001",
      "period": {
        "from": "2026-06-15T22:30:00Z",
        "to": "2026-06-15T22:30:00Z",
        "status": "available"
      },
      "info": {
        "title": "string",
        "image": {
          "resource": "string"
        },
        "color": "",
        "place": {
          "type": "resource"
        }
      },
      "schedule": {
        "timezone": "string"
      },
      "offer": {
        "mode": "disabled",
        "attendeeMode": "multiple",
        "displaySettings": {
          "seatsAvailableThreshold": 0,
          "unlisted": true
        },
        "rates": [
          {
            "id": "string",
            "name": "string",
            "availableAmount": 1,
            "charge": {
              "type": "price",
              "price": {
                "isNet": true,
                "price": 0,
                "taxCode": "string",
                "taxRate": 1,
                "account": 1,
                "costCenter1": 1,
                "costCenter2": 1,
                "dimensions": [
                  {
                    "dimensionId": "000000000000000000000001",
                    "optionKey": "string"
                  }
                ]
              },
              "punchCard": {
                "punchCard": "000000000000000000000001",
                "punchCardName": "string",
                "punchCardPrice": {
                  "isNet": true,
                  "price": 0,
                  "taxCode": "string",
                  "taxRate": 1,
                  "account": 1,
                  "costCenter1": 1,
                  "costCenter2": 1,
                  "dimensions": [
                    {
                      "dimensionId": null,
                      "optionKey": "string"
                    }
                  ]
                },
                "points": 1
              }
            }
          }
        ]
      },
      "statistics": {
        "confirmed": 0,
        "checkedIn": 0,
        "waitlisted": 0
      }
    }
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.