Booking · Tournaments
Start match
Marks a match as running, so everyone who follows the tournament sees its score live. Both teams have to be clear.
Permissions
Send an API key of the organization in the path, using the X-API-Key header.
Permission checks in detail
Required permissions
mandate.readtournament.edit
Also checked, depending on the request and the records it touches
user.readapiKey.readcontact:member.readcontact:address.readcontact:customer.readcontact:sponsor.readcontact:contributor.readcontact:employee.readcontact:supplier.readcontact.read
Request
Path parameters
-
organizationIdidrequired -
mandateIdidrequired -
tournamentIdidrequired -
matchIdidrequired
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/matches/YOUR_MATCH_ID/start' \
--header 'X-API-Key: YOUR_API_KEY'const response = await fetch("https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/matches/YOUR_MATCH_ID/start", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY"
},
redirect: 'error',
signal: AbortSignal.timeout(30_000),
});
if (!response.ok) throw new Error(`campai HTTP ${response.status}`);
const text = await response.text();
const result = text ? JSON.parse(text) : null;
console.log(JSON.stringify(result, null, 2));<?php
$context = stream_context_create(['http' => [
'method' => 'POST',
'header' => [
'X-API-Key: YOUR_API_KEY',
],
'timeout' => 30,
'follow_location' => 0,
'ignore_errors' => true,
]]);
$text = @file_get_contents('https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/booking/tournaments/YOUR_TOURNAMENT_ID/matches/YOUR_MATCH_ID/start', false, $context);
preg_match('/^HTTP\/\S+ (\d{3})/', $http_response_header[0] ?? '', $match);
$status = (int) ($match[1] ?? 0);
if ($text === false || $status < 200 || $status >= 300) {
throw new RuntimeException("campai HTTP $status (0 means no response)");
}
$result = $text === '' ? null : json_decode($text, true, 512, JSON_THROW_ON_ERROR);
echo json_encode($result, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR), PHP_EOL;
Response
200 Successful response
Content-Type: application/json
-
tournamentobjectnullable37 properties
-
_idid -
createdAtstring · date-timenullable -
updatedAtstring · date-timenullable -
removedAtstring · date-timenullable -
createdByobjectnullable -
updatedByobjectnullable -
removedByobjectnullable -
__ignoreTriggersstringnullable -
organizationid -
mandateid -
shortIdstringexactly 6 characters
-
namestring1–60 characters
-
descriptionstringat most 140 characters
-
detailsstringat most 25000 characters
-
imageobjectnullable4 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
-
colorstring -
tagsstring[]at most 10 items · each 1–40 characters
-
placeobjectnullable5 properties
-
typestringresourceaddressonline -
resourceobject6 properties
-
siteid -
siteNamestringat least 1 characters
-
siteAddressobject7 properties
-
countrystring -
statestring -
zipstringat most 10 characters
-
citystringat most 45 characters
-
addressLinestringat most 45 characters
-
details1stringat most 45 characters
-
details2stringat most 45 characters
-
-
resourceid -
resourceNamestring -
quantityinteger
-
-
addressobject7 properties
-
countrystring -
statestring -
zipstringat most 10 characters
-
citystringat most 45 characters
-
addressLinestringat most 45 characters
-
details1stringat most 45 characters
-
details2stringat most 45 characters
-
-
locationobjectnullable2 properties
-
latitudenumber-90–90
-
longitudenumber-180–180
-
-
onlineobject2 properties
-
urlstring · uriat most 300 characters
-
instructionsstringat most 400 characters
-
-
-
timezonestringat least 1 characters
-
daysobject[]1–14 items
2 properties
-
datestring -
startobject2 properties
-
hoursinteger0–23
-
minutesinteger0–59
-
-
-
periodobject2 properties
-
fromstring · date-time -
tostring · date-time
-
-
participantTypestringteamperson -
advancementstringautomaticmanual -
eventidnullable -
divisionsobject[]1–24 items
10 properties
-
idstringexactly 10 characters
-
namestring1–40 characters
-
shortNamestring1–8 characters
-
colorstring -
rateIdstringnullableexactly 8 characters
-
maxTeamsintegernullableat most 512
-
displaystringallscoresnone -
fieldsstring[]at most 32 items · each exactly 10 characters
-
scoringobject5 properties
-
modestringgoalssetswins -
pointsobject3 properties
-
winnumber0–20
-
drawnumber0–20
-
lossnumber0–20
-
-
criteriastring[]at least 1 items
pointsdifferencescoredheadToHeadwinsballDifference -
headToHeadGoalsboolean -
setsobjectnullable1 property
-
maxinteger1–9
-
-
-
stagesobject[]at most 8 items
10 properties
-
idstringexactly 10 characters
-
namestring1–30 characters
-
groupsobject[]at most 32 items
9 properties
-
idstringexactly 10 characters
-
namestring1–30 characters
-
slotsobject[]at most 32 items
2 properties
-
sourceobjectnullable -
teamidnullable
-
-
encountersinteger0–4
-
roundLimitintegernullableat most 200
-
pairingstringdfbcircle -
matchMinutesintegernullable1–600
-
decisionsobject[]at most 32 items
1 property
-
teamsid[]2–32 items
-
-
adjustmentsobject[]at most 128 items
3 properties
-
teamid -
pointsnumber-100–100
-
notestringat most 120 characters
-
-
-
bracketsobject[]at most 16 items
2 properties
-
idstringexactly 10 characters
-
namestringat most 30 characters
-
-
daystringnullable -
matchMinutesinteger1–600
-
breakMinutesinteger0–240
-
pauseMinutesinteger0–600
-
decisionsobject[]at most 32 items
1 property
-
teamsid[]2–32 items
-
-
startedAtstring · date-timenullable
-
-
-
fieldsobject[]1–32 items
4 properties
-
idstringexactly 10 characters
-
namestring1–40 characters
-
shortNamestring1–8 characters
-
resourceobjectnullable4 properties
-
siteid -
siteNamestring -
resourceid -
resourceNamestring
-
-
-
scheduleModestringalternaterounds -
programItemsobject[]at most 60 items
6 properties
-
idstringexactly 10 characters
-
titlestring1–60 characters
-
startstring · date-time -
minutesinteger1–1440
-
fieldsstring[]at most 32 items · each exactly 10 characters
-
publicboolean
-
-
refereesobject[]at most 100 items
2 properties
-
idstringexactly 10 characters
-
namestring1–60 characters
-
-
visibilityobject3 properties
-
teamsboolean -
scheduleboolean -
playersboolean
-
-
screenobject2 properties
-
partsstring[]at least 1 items
matchestablesbracket -
secondsinteger5–120
-
-
reportingobject3 properties
-
teamsboolean -
refereesboolean -
disputeMinutesinteger0–120
-
-
helperLinksobject[]at most 64 items
10 properties
-
idstringexactly 10 characters
-
tokenstringexactly 32 characters
-
namestring1–40 characters
-
fieldsstring[]at most 32 items · each exactly 10 characters
-
divisionsstring[]at most 24 items · each exactly 10 characters
-
validitystringmatchDaysuntilReset -
canEditFinishedboolean -
createdAtstring · date-time -
lastUsedAtstring · date-timenullable -
entriesintegerat least 0
-
-
statisticsobject4 properties
-
teamsintegerat least 0
-
matchesintegerat least 0
-
scheduledintegerat least 0
-
finishedintegerat least 0
-
-
publishedAtstring · date-timenullable -
cancelationobjectnullable3 properties
-
canceledAtstring · date-time -
canceledByobject -
reasonstringat most 240 characters
-
-
archivedAtstring · date-timenullable
-
-
teamsobject[]22 properties
-
_idid -
createdAtstring · date-timenullable -
updatedAtstring · date-timenullable -
removedAtstring · date-timenullable -
createdByobjectnullable -
updatedByobjectnullable -
removedByobjectnullable -
__ignoreTriggersstringnullable -
organizationid -
mandateid -
tournamentid -
divisionstringexactly 10 characters
-
namestring1–60 characters
-
shortNamestringat most 6 characters
-
colorstring -
imageobjectnullable4 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
-
contactobject4 properties
-
namestringat most 120 characters
-
emailstring -
phonestring | string · phone -
contactobjectnullable7 properties
-
namestring -
typestring -
nameNormalizedstring -
nameSortstring -
contactidnullable -
imageobjectnullable4 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
-
userobjectnullable4 properties
-
namestring -
typestring -
userIdstring -
imageobjectnullable4 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
-
-
-
-
attendeeidnullable -
appTeamidnullable -
playersobject[]at most 60 items
3 properties
-
idstringexactly 10 characters
-
namestring1–80 characters
-
numberstringat most 4 characters
-
-
positionintegerat least 0
-
withdrawnAtstring · date-timenullable
-
-
matchesobject[]37 properties
-
_idid -
createdAtstring · date-timenullable -
updatedAtstring · date-timenullable -
removedAtstring · date-timenullable -
createdByobjectnullable -
updatedByobjectnullable -
removedByobjectnullable -
__ignoreTriggersstringnullable -
organizationid -
mandateid -
tournamentid -
keystringexactly 10 characters
-
divisionstringexactly 10 characters
-
stagestringexactly 10 characters
-
groupstringnullableexactly 10 characters
-
bracketstringnullableexactly 10 characters
-
roundinteger -
positionintegerat least 0
-
kindstringgrouproundOf64roundOf32roundOf16quarterfinalsemifinalfinalplacementcustom -
kindNumberinteger -
namestringat most 60 characters
-
placeintegernullable -
placeTointegernullable -
homeobject2 properties
-
sourceobject -
teamidnullable
-
-
awayobject2 properties
-
sourceobject -
teamidnullable
-
-
numberintegernullable -
fieldstringnullableexactly 10 characters
-
startstring · date-timenullable -
minutesinteger1–600
-
lockedboolean -
refereeobjectnullable2 properties
-
teamidnullable -
refereestringnullableexactly 10 characters
-
-
liveobjectnullable4 properties
-
homeinteger0–999
-
awayinteger0–999
-
setsobject[]at most 9 items
2 properties
-
homeinteger0–999
-
awayinteger0–999
-
-
startedAtstring · date-time
-
-
resultobjectnullable9 properties
-
homeinteger0–999
-
awayinteger0–999
-
setsobject[]at most 9 items
2 properties
-
homeinteger0–999
-
awayinteger0–999
-
-
extraTimeboolean -
penaltiesobjectnullable2 properties
-
homeinteger0–999
-
awayinteger0–999
-
-
deciderstringnullablehomeaway -
ratedboolean -
enteredAtstring · date-time -
enteredByobject2 properties
-
typestringadminhelperteamreferee -
namestringat most 120 characters
-
-
-
disputeobjectnullable2 properties
-
resultobject9 properties
-
homeinteger0–999
-
awayinteger0–999
-
setsobject[]at most 9 items
2 properties
-
homeinteger0–999
-
awayinteger0–999
-
-
extraTimeboolean -
penaltiesobjectnullable2 properties
-
homeinteger0–999
-
awayinteger0–999
-
-
deciderstringnullablehomeaway -
ratedboolean -
enteredAtstring · date-time -
enteredByobject2 properties
-
typestringadminhelperteamreferee -
namestringat most 120 characters
-
-
-
reportedAtstring · date-time
-
-
goalsobject[]at most 200 items
5 properties
-
idstringexactly 10 characters
-
sidestringhomeaway -
minuteintegernullable0–999
-
playerstringnullableexactly 10 characters
-
ownGoalboolean
-
-
logobject[]at most 60 items
5 properties
-
atstring · date-time -
byobject2 properties
-
typestringadminhelperteamreferee -
namestringat most 120 characters
-
-
actionstringstartedscoreresultcleareddisputedresolved -
homeintegernullable0–999
-
awayintegernullable0–999
-
-
announcedobject2 properties
-
startstring · date-timenullable -
resultstring · date-timenullable
-
-
-
removedTeamsid[] -
removedMatchesid[] -
conflictsobject[]3 properties
-
matchstring -
sidestringhomeaway -
teamstringnullable
-
{
"tournament": {
"_id": "000000000000000000000001",
"organization": "000000000000000000000001",
"mandate": "000000000000000000000001",
"shortId": "string",
"name": "string",
"description": "string",
"details": "string",
"image": {
"resource": "string"
},
"color": "",
"tags": [
"string"
],
"place": {
"type": "resource"
},
"timezone": "string",
"days": [
{
"date": "string",
"start": {
"hours": 0,
"minutes": 0
}
}
],
"period": {
"from": "2026-06-15T22:30:00Z",
"to": "2026-06-15T22:30:00Z"
},
"participantType": "team",
"advancement": "automatic",
"event": "000000000000000000000001",
"divisions": [
{
"id": "string",
"name": "string",
"shortName": "string",
"color": "",
"rateId": "string",
"maxTeams": 1,
"display": "all",
"fields": [
"string"
],
"scoring": {
"mode": "goals",
"points": {
"win": 0,
"draw": 0,
"loss": 0
},
"criteria": [
"points"
],
"headToHeadGoals": true,
"sets": {
"max": 1
}
},
"stages": [
{
"id": "string",
"name": "string",
"groups": [
{
"id": "string",
"name": "string",
"slots": [
{
"source": null,
"team": null
}
],
"encounters": 0,
"roundLimit": 1,
"pairing": "dfb",
"matchMinutes": 1,
"decisions": [
{
"teams": [
null
]
}
],
"adjustments": [
{
"team": "000000000000000000000001",
"points": -100,
"note": "string"
}
]
}
],
"brackets": [
{
"id": "string",
"name": "string"
}
],
"day": "string",
"matchMinutes": 1,
"breakMinutes": 0,
"pauseMinutes": 0,
"decisions": [
{
"teams": [
"000000000000000000000001"
]
}
],
"startedAt": "2026-06-15T22:30:00Z"
}
]
}
],
"fields": [
{
"id": "string",
"name": "string",
"shortName": "string",
"resource": {
"site": "000000000000000000000001",
"siteName": "string",
"resource": "000000000000000000000001",
"resourceName": "string"
}
}
],
"scheduleMode": "alternate",
"programItems": [
{
"id": "string",
"title": "string",
"start": "2026-06-15T22:30:00Z",
"minutes": 1,
"fields": [
"string"
],
"public": true
}
],
"referees": [
{
"id": "string",
"name": "string"
}
],
"visibility": {
"teams": true,
"schedule": true,
"players": true
},
"screen": {
"parts": [
"matches"
],
"seconds": 5
},
"reporting": {
"teams": true,
"referees": true,
"disputeMinutes": 0
},
"helperLinks": [
{
"id": "string",
"token": "string",
"name": "string",
"fields": [
"string"
],
"divisions": [
"string"
],
"validity": "matchDays",
"canEditFinished": true,
"createdAt": "2026-06-15T22:30:00Z",
"lastUsedAt": "2026-06-15T22:30:00Z",
"entries": 0
}
],
"statistics": {
"teams": 0,
"matches": 0,
"scheduled": 0,
"finished": 0
},
"publishedAt": "2026-06-15T22:30:00Z",
"cancelation": {
"canceledAt": "2026-06-15T22:30:00Z",
"canceledBy": {
"name": "string",
"type": "user",
"userId": "string",
"image": {
"resource": "string"
}
},
"reason": "string"
},
"archivedAt": "2026-06-15T22:30:00Z"
},
"teams": [
{
"_id": "000000000000000000000001",
"organization": "000000000000000000000001",
"mandate": "000000000000000000000001",
"tournament": "000000000000000000000001",
"division": "string",
"name": "string",
"shortName": "string",
"color": "",
"image": {
"resource": "string"
},
"contact": {
"name": "string",
"email": "",
"phone": "",
"contact": {
"name": "string",
"type": "contact",
"nameNormalized": "string",
"nameSort": "string",
"contact": "000000000000000000000001",
"image": {
"resource": "string"
},
"user": {
"name": "string",
"type": "user",
"userId": "string",
"image": {
"resource": "string"
}
}
}
},
"attendee": "000000000000000000000001",
"appTeam": "000000000000000000000001",
"players": [
{
"id": "string",
"name": "string",
"number": "string"
}
],
"position": 0,
"withdrawnAt": "2026-06-15T22:30:00Z"
}
],
"matches": [
{
"_id": "000000000000000000000001",
"organization": "000000000000000000000001",
"mandate": "000000000000000000000001",
"tournament": "000000000000000000000001",
"key": "string",
"division": "string",
"stage": "string",
"group": "string",
"bracket": "string",
"round": 1,
"position": 0,
"kind": "group",
"kindNumber": 1,
"name": "string",
"place": 1,
"placeTo": 1,
"home": {
"source": {
"type": "team",
"team": "000000000000000000000001"
},
"team": "000000000000000000000001"
},
"away": {
"source": {
"type": "team",
"team": "000000000000000000000001"
},
"team": "000000000000000000000001"
},
"number": 1,
"field": "string",
"start": "2026-06-15T22:30:00Z",
"minutes": 1,
"locked": true,
"referee": {
"team": "000000000000000000000001",
"referee": "string"
},
"live": {
"home": 0,
"away": 0,
"sets": [
{
"home": 0,
"away": 0
}
],
"startedAt": "2026-06-15T22:30:00Z"
},
"result": {
"home": 0,
"away": 0,
"sets": [
{
"home": 0,
"away": 0
}
],
"extraTime": true,
"penalties": {
"home": 0,
"away": 0
},
"decider": "home",
"rated": true,
"enteredAt": "2026-06-15T22:30:00Z",
"enteredBy": {
"type": "admin",
"name": "string"
}
},
"dispute": {
"result": {
"home": 0,
"away": 0,
"sets": [
{
"home": 0,
"away": 0
}
],
"extraTime": true,
"penalties": {
"home": 0,
"away": 0
},
"decider": "home",
"rated": true,
"enteredAt": "2026-06-15T22:30:00Z",
"enteredBy": {
"type": "admin",
"name": "string"
}
},
"reportedAt": "2026-06-15T22:30:00Z"
},
"goals": [
{
"id": "string",
"side": "home",
"minute": 0,
"player": "string",
"ownGoal": true
}
],
"log": [
{
"at": "2026-06-15T22:30:00Z",
"by": {
"type": "admin",
"name": "string"
},
"action": "started",
"home": 0,
"away": 0
}
],
"announced": {
"start": "2026-06-15T22:30:00Z",
"result": "2026-06-15T22:30:00Z"
}
}
],
"removedTeams": [
"000000000000000000000001"
],
"removedMatches": [
"000000000000000000000001"
],
"conflicts": [
{
"match": "string",
"side": "home",
"team": "string"
}
]
}
Errors
No errors of its own are known for this endpoint.
Errors nearly every request can meet are listed under Errors.