Skip to content
campaiDeveloper
campai.com

Booking · Tournaments

POST/{organizationId}/{mandateId}/booking/tournaments/{tournamentId}/duplicate

Duplicate tournament

Creates a new tournament with the format, fields, schedule and settings of another one on new days, on request with its teams and their draw. Results, helper links, the sign-up event and the publication are not taken over.

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
  • tournament.insert

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • tournamentIdidrequired

Body

Content-Type: application/json

  • namestringrequired

    1–60 characters

  • daysobject[]required

    1–14 items

    2 properties
    • datestringrequired
    • startobjectrequired
      2 properties
      • hoursintegerrequired

        0–23

      • minutesintegerrequired

        0–59

  • withTeamsboolean

    default false

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/duplicate' \
  --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

Content-Type: application/json

  • _idid
Response200
{
  "_id": "000000000000000000000001"
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.