Misc · Assemblies
Cancel meeting
Cancels a meeting that was invited to, with a reason. Its links stop working and it keeps what it was. A draft is deleted instead, and a meeting with a running round is refused until the round is stopped.
Permissions
Send an API key of the organization in the path, using the X-API-Key header.
Permission checks in detail
Required permissions
mandate.readassembly.edit
Request
Path parameters
-
organizationIdidrequired -
mandateIdidrequired -
assemblyIdidrequired
Body
Content-Type: application/json
-
reasonstringat most 500 characters · default
""
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
--request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/misc/assemblies/YOUR_ASSEMBLY_ID/cancel' \
--header 'X-API-Key: YOUR_API_KEY'const response = await fetch("https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/misc/assemblies/YOUR_ASSEMBLY_ID/cancel", {
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/misc/assemblies/YOUR_ASSEMBLY_ID/cancel', 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;
No request that worked has been recorded yet, so the body is not shown.
Response
200 Successful response
Content-Type: application/json
-
assemblyobject33 properties
-
_idid -
createdAtstring · date-timenullable -
updatedAtstring · date-timenullable -
removedAtstring · date-timenullable -
createdByobjectnullable -
updatedByobjectnullable -
removedByobjectnullable -
__ignoreTriggersstringnullable -
organizationid -
mandateid -
shortIdstringexactly 6 characters
-
titlestring1–120 characters
-
kindstringgeneraldelegatesboardwritten -
formatstringinPersonhybridonlinewritten -
timezonestringat least 1 characters
-
periodobjectnullable2 properties
-
startstring · date-time -
endstring · date-timenullable
-
-
votingPeriodobjectnullable2 properties
-
opensAtstring · date-time -
closesAtstring · date-time
-
-
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
-
-
-
onlineUrlstring · urinullableat most 300 characters
-
statusstringdraftinvitedrunningclosedcanceled -
agendaobject[]at most 100 items
7 properties
-
_idid -
kindstringregularotherBusiness -
titlestring1–200 characters
-
descriptionstringat most 20000 characters
-
attachmentsobject[]at most 20 items
5 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
idstringexactly 6 characters
-
-
inInvitationboolean -
minutesNotestringat most 20000 characters
-
-
registerobject3 properties
-
ruleobject5 properties
-
contactTypesstring[]memberaddresscustomersponsorcontributoremployeesupplier -
segmentsstring[]each 1–30 characters
-
departmentsid[] -
tagsstring[]at most 20 items · each 1–40 characters
-
minimumAgeintegernullable0–120
-
-
referenceDatestring -
builtAtstring · date-timenullable
-
-
officersobject2 properties
-
chairidnullable -
minutesTakeridnullable
-
-
settingsobject9 properties
-
votingobject5 properties
-
motionKindstringsecretnamedpaper -
electionKindstringsecretnamedpaper -
defaultMajoritystringsimpleabsolutetwoThirdsthreeQuartersallMembersrelative -
showCounterboolean -
resultsVisibleTostringparticipantsvotersmanagers
-
-
presenceobject4 properties
-
selfCheckInboolean -
qrCheckInboolean -
quorumobject2 properties
-
kindstringnonesharecount -
valuenumberat least 0
-
-
presenceRequiredboolean
-
-
proxiesobject7 properties
-
allowedboolean -
formstringtextsigned -
maxPerHolderinteger1–20
-
holderMustBeVoterboolean -
selfServiceboolean -
deadlinestring · date-timenullable -
principalVotesWhenPresentboolean
-
-
weightsobject1 property
-
enabledboolean
-
-
statuteobject1 property
-
clausesobject5 properties
-
writtenResolutionstringnullableat most 500 characters
-
relativeMajoritystringnullableat most 500 characters
-
onlinestringnullableat most 500 characters
-
absenteestringnullableat most 500 characters
-
minutesSignatoriesstringnullableat most 500 characters
-
-
-
retentionobject1 property
-
ballotsKeptMonthsinteger1–120
-
-
accessobject2 properties
-
appboolean -
linkboolean
-
-
noticeobject1 property
-
daysinteger0–365
-
-
motionsobject2 properties
-
submissionsAllowedboolean -
submissionDeadlinestring · date-timenullable
-
-
-
invitationobject7 properties
-
subjectstringat most 200 characters
-
bodystringat most 20000 characters
-
channelsstring[]emailletterapp -
documentsobject[]at most 10 items
5 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
idstringexactly 6 characters
-
-
sentAtstring · date-timenullable -
sentByobjectnullable -
lateByintegernullableat least 0
-
-
minutesobject5 properties
-
statusstringdraftfinal -
notesstringat most 50000 characters
-
documentobjectnullable4 properties
-
resourcestringat least 1 characters
-
fileNamestringat most 128 characters
-
contentTypestringat most 75 characters
-
fileSizeBytesintegerat least 0
-
-
confirmationsobject[]at most 10 items
2 properties
-
participantid -
atstring · date-time
-
-
finalizedAtstring · date-timenullable
-
-
screenLinksobject[]at most 32 items
5 properties
-
idstring8–32 characters
-
namestring1–60 characters
-
tokenstringexactly 32 characters
-
createdAtstring · date-time -
lastUsedAtstring · date-timenullable
-
-
deskLinksobject[]at most 32 items
5 properties
-
idstring8–32 characters
-
namestring1–60 characters
-
tokenstringexactly 32 characters
-
createdAtstring · date-time -
lastUsedAtstring · date-timenullable
-
-
blocksRoomboolean -
statisticsobject6 properties
-
votersobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
guestsintegerat least 0
-
externalsintegerat least 0
-
presentobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
votesintegerat least 0
-
decidedintegerat least 0
-
-
cancelationobjectnullable3 properties
-
canceledAtstring · date-time -
canceledByobject -
reasonstringat most 500 characters
-
-
closedAtstring · date-timenullable -
ballotsDeletedAtstring · date-timenullable
-
{
"assembly": {
"_id": "000000000000000000000001",
"organization": "000000000000000000000001",
"mandate": "000000000000000000000001",
"shortId": "string",
"title": "string",
"kind": "general",
"format": "inPerson",
"timezone": "string",
"period": {
"start": "2026-06-15T22:30:00Z",
"end": "2026-06-15T22:30:00Z"
},
"votingPeriod": {
"opensAt": "2026-06-15T22:30:00Z",
"closesAt": "2026-06-15T22:30:00Z"
},
"place": {
"type": "resource"
},
"onlineUrl": "string",
"status": "draft",
"agenda": [
{
"_id": "000000000000000000000001",
"kind": "regular",
"title": "string",
"description": "string",
"attachments": [
{
"resource": "string",
"id": "string"
}
],
"inInvitation": true,
"minutesNote": "string"
}
],
"register": {
"rule": {
"contactTypes": [
"member"
],
"segments": [
"string"
],
"departments": [
"000000000000000000000001"
],
"tags": [
"string"
],
"minimumAge": 0
},
"referenceDate": "string",
"builtAt": "2026-06-15T22:30:00Z"
},
"officers": {
"chair": "000000000000000000000001",
"minutesTaker": "000000000000000000000001"
},
"settings": {
"voting": {
"motionKind": "secret",
"electionKind": "secret",
"defaultMajority": "simple",
"showCounter": true,
"resultsVisibleTo": "participants"
},
"presence": {
"selfCheckIn": true,
"qrCheckIn": true,
"quorum": {
"kind": "none",
"value": 0
},
"presenceRequired": true
},
"proxies": {
"allowed": true,
"form": "text",
"maxPerHolder": 1,
"holderMustBeVoter": true,
"selfService": true,
"deadline": "2026-06-15T22:30:00Z",
"principalVotesWhenPresent": true
},
"weights": {
"enabled": true
},
"statute": {
"clauses": {
"writtenResolution": "string",
"relativeMajority": "string",
"online": "string",
"absentee": "string",
"minutesSignatories": "string"
}
},
"retention": {
"ballotsKeptMonths": 1
},
"access": {
"app": true,
"link": true
},
"notice": {
"days": 0
},
"motions": {
"submissionsAllowed": true,
"submissionDeadline": "2026-06-15T22:30:00Z"
}
},
"invitation": {
"subject": "string",
"body": "string",
"channels": [
"email"
],
"documents": [
{
"resource": "string",
"id": "string"
}
],
"sentAt": "2026-06-15T22:30:00Z",
"sentBy": {
"name": "string",
"type": "user",
"userId": "string",
"image": {
"resource": "string"
}
},
"lateBy": 0
},
"minutes": {
"status": "draft",
"notes": "string",
"document": {
"resource": "string"
},
"confirmations": [
{
"participant": "000000000000000000000001",
"at": "2026-06-15T22:30:00Z"
}
],
"finalizedAt": "2026-06-15T22:30:00Z"
},
"screenLinks": [
{
"id": "string",
"name": "string",
"token": "string",
"createdAt": "2026-06-15T22:30:00Z",
"lastUsedAt": "2026-06-15T22:30:00Z"
}
],
"deskLinks": [
{
"id": "string",
"name": "string",
"token": "string",
"createdAt": "2026-06-15T22:30:00Z",
"lastUsedAt": "2026-06-15T22:30:00Z"
}
],
"blocksRoom": true,
"statistics": {
"voters": {
"count": 0,
"weight": 0
},
"guests": 0,
"externals": 0,
"present": {
"count": 0,
"weight": 0
},
"votes": 0,
"decided": 0
},
"cancelation": {
"canceledAt": "2026-06-15T22:30:00Z",
"canceledBy": {
"name": "string",
"type": "user",
"userId": "string",
"image": {
"resource": "string"
}
},
"reason": "string"
},
"closedAt": "2026-06-15T22:30:00Z",
"ballotsDeletedAt": "2026-06-15T22:30:00Z"
}
}
Errors
No errors of its own are known for this endpoint.
Errors nearly every request can meet are listed under Errors.