Skip to content
campaiDeveloper
campai.com

Booking · Tournaments

GET/{organizationId}/{mandateId}/booking/events/{eventId}/tournamentDraftReads only

Get the tournament an event would become

Returns what a tournament created from an event takes over: its name, days, place, picture, color and tags, a category for each of its rates, and how many confirmed sign-ups would become teams. Only events with a single date that teams register for, and that belong to no tournament, can become one.

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
  • eventIdidrequired
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/events/YOUR_EVENT_ID/tournamentDraft' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • namestring

    1–60 characters

  • descriptionstring

    at most 140 characters

  • imageobjectnullable
    4 properties
    • resourcestring

      at least 1 characters

    • fileNamestring

      at most 128 characters

    • contentTypestring

      at most 75 characters

    • fileSizeBytesinteger

      at least 0

  • colorstring
  • tagsstring[]

    at most 10 items · each 1–40 characters

  • 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

  • timezonestring

    at least 1 characters

  • daysobject[]

    1–14 items

    2 properties
    • datestring
    • startobject
      2 properties
      • hoursinteger

        0–23

      • minutesinteger

        0–59

  • participantTypestring
    team person
  • divisionsobject[]
    6 properties
    • rateIdstringnullable

      exactly 8 characters

    • namestring

      1–40 characters

    • shortNamestring

      1–8 characters

    • colorstring
    • maxTeamsintegernullable

      at most 512

    • teamsinteger

      at least 0

  • eventobject
    3 properties
    • _idid
    • mandateid
    • periodobject
      4 properties
      • fromstring · date-time
      • tostring · date-time
      • statusstring
        available blockedResource blockedCalendar
      • warningstring
        noAvailableExtendedPeriod
Response200
{
  "name": "string",
  "description": "string",
  "image": {
    "resource": "string"
  },
  "color": "",
  "tags": [
    "string"
  ],
  "place": {
    "type": "resource"
  },
  "timezone": "string",
  "days": [
    {
      "date": "string",
      "start": {
        "hours": 0,
        "minutes": 0
      }
    }
  ],
  "participantType": "team",
  "divisions": [
    {
      "rateId": "string",
      "name": "string",
      "shortName": "string",
      "color": "",
      "maxTeams": 1,
      "teams": 0
    }
  ],
  "event": {
    "_id": "000000000000000000000001",
    "mandate": "000000000000000000000001",
    "period": {
      "from": "2026-06-15T22:30:00Z",
      "to": "2026-06-15T22:30:00Z",
      "status": "available"
    }
  }
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.