Misc · Assemblies
Reset round
Deletes the ballots and casts of a running or stopped round of a meeting that was not published, so it can be started again, for example after a technical problem. The round's title must be typed to confirm. The reset is recorded for the minutes.
Permissions
Send an API key of the organization in the path, using the X-API-Key header.
Permission checks in detail
Required permissions
mandate.readassemblyConduct.edit
Request
Path parameters
-
organizationIdidrequired -
mandateIdidrequired -
assemblyIdidrequired
Body
Content-Type: application/json
-
roundIdidrequired -
confirmTitlestringrequiredat most 200 characters
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/rounds/reset' \
--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/rounds/reset", {
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/rounds/reset', 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
-
roundobject33 properties
-
_idid -
createdAtstring · date-timenullable -
updatedAtstring · date-timenullable -
removedAtstring · date-timenullable -
createdByobjectnullable -
updatedByobjectnullable -
removedByobjectnullable -
__ignoreTriggersstringnullable -
organizationid -
assemblyid -
voteid -
numberintegerat least 1
-
titlestring1–120 characters
-
kindstringsecretnamedpaper -
methodstringyesNoAbstainyesNoyesnolistYesNoAbstain -
optionsobject[]1–100 items
3 properties
-
_idid -
labelstring1–200 characters
-
candidateidnullable
-
-
marksobject2 properties
-
minintegerat least 0
-
maxintegerat least 1
-
-
generalobject2 properties
-
noboolean -
abstainboolean
-
-
basestringyesNoyesNoAbstainvalidcastentitledpresentnone -
groupsstring[]nullableeach at most 60 characters
-
closesAtstring · date-timenullable -
statestringcreatedrunningstoppedpublishedannulled -
startedAtstring · date-timenullable -
stoppedAtstring · date-timenullable -
publishedAtstring · date-timenullable -
annulmentobjectnullable3 properties
-
atstring · date-time -
byobject -
reasonstringat most 500 characters
-
-
receivedobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
entitledobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
quorumobject2 properties
-
atStartobjectnullable3 properties
-
presentobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
votersobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
metbooleannullable
-
-
atStopobjectnullable3 properties
-
presentobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
votersobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
metbooleannullable
-
-
-
warningsobject[]2 properties
-
kindstringnotInInvitationquorumMissingfewEntitledfewOnlinenoEntitledlate -
countintegernullableat least 0
-
-
incidentsobject2 properties
-
failuresintegerat least 0
-
disconnectsintegerat least 0
-
-
resultobjectnullable7 properties
-
optionsobject[]4 properties
-
optionid -
yesobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
noobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
abstainobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
-
generalobject2 properties
-
noobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
abstainobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
-
validobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
invalidobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
castobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
entitledobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
presentobject2 properties
-
countintegerat least 0
-
weightnumberat least 0
-
-
-
paperResultobjectnullable4 properties
-
optionsobject[]4 properties
-
optionid -
yesintegerat least 0
-
nointegerat least 0
-
abstainintegerat least 0
-
-
generalobject2 properties
-
nointegerat least 0
-
abstainintegerat least 0
-
-
validintegerat least 0
-
invalidintegerat least 0
-
-
{
"round": {
"_id": "000000000000000000000001",
"organization": "000000000000000000000001",
"assembly": "000000000000000000000001",
"vote": "000000000000000000000001",
"number": 1,
"title": "string",
"kind": "secret",
"method": "yesNoAbstain",
"options": [
{
"_id": "000000000000000000000001",
"label": "string",
"candidate": "000000000000000000000001"
}
],
"marks": {
"min": 0,
"max": 1
},
"general": {
"no": true,
"abstain": true
},
"base": "yesNo",
"groups": [
"string"
],
"closesAt": "2026-06-15T22:30:00Z",
"state": "created",
"startedAt": "2026-06-15T22:30:00Z",
"stoppedAt": "2026-06-15T22:30:00Z",
"publishedAt": "2026-06-15T22:30:00Z",
"annulment": {
"at": "2026-06-15T22:30:00Z",
"by": {
"name": "string",
"type": "user",
"userId": "string",
"image": {
"resource": "string"
}
},
"reason": "string"
},
"received": {
"count": 0,
"weight": 0
},
"entitled": {
"count": 0,
"weight": 0
},
"quorum": {
"atStart": {
"present": {
"count": 0,
"weight": 0
},
"voters": {
"count": 0,
"weight": 0
},
"met": true
},
"atStop": {
"present": {
"count": 0,
"weight": 0
},
"voters": {
"count": 0,
"weight": 0
},
"met": true
}
},
"warnings": [
{
"kind": "notInInvitation",
"count": 0
}
],
"incidents": {
"failures": 0,
"disconnects": 0
},
"result": {
"options": [
{
"option": "000000000000000000000001",
"yes": {
"count": 0,
"weight": 0
},
"no": {
"count": 0,
"weight": 0
},
"abstain": {
"count": 0,
"weight": 0
}
}
],
"general": {
"no": {
"count": 0,
"weight": 0
},
"abstain": {
"count": 0,
"weight": 0
}
},
"valid": {
"count": 0,
"weight": 0
},
"invalid": {
"count": 0,
"weight": 0
},
"cast": {
"count": 0,
"weight": 0
},
"entitled": {
"count": 0,
"weight": 0
},
"present": {
"count": 0,
"weight": 0
}
},
"paperResult": {
"options": [
{
"option": "000000000000000000000001",
"yes": 0,
"no": 0,
"abstain": 0
}
],
"general": {
"no": 0,
"abstain": 0
},
"valid": 0,
"invalid": 0
}
}
}
Errors
No errors of its own are known for this endpoint.
Errors nearly every request can meet are listed under Errors.