Skip to content
campaiDeveloper
campai.com

Misc · Assemblies · Exports

POST/{organizationId}/{mandateId}/misc/assemblies/{assemblyId}/exports/resultsReads only

Export results

Creates a PDF with every published round of a meeting, grouped by agenda item: the counts for each option, the majority and the outcome of each vote. Fails when no round has been published yet.

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
  • assembly.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • assemblyIdidrequired
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/misc/assemblies/YOUR_ASSEMBLY_ID/exports/results' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • namestring
  • mimeTypestring
  • dataobject
    1 property
    • contentstring
Response200
{
  "name": "string",
  "mimeType": "application/pdf",
  "data": {
    "content": "string"
  }
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.