Skip to content
campaiDeveloper
campai.com

Misc · Assemblies · Exports

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

Print ballot papers

Creates a PDF with ballot papers for a paper round of a meeting, with its options, what to mark and cut lines between papers that share a page. Prints one paper for each voter who may vote in the round unless a number of copies is given.

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

Body

Content-Type: application/json

  • roundIdidrequired
  • copiesinteger

    1–2000

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

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