Skip to content
campaiDeveloper
campai.com

Misc · Assemblies

POST/{organizationId}/{mandateId}/misc/assemblies/{assemblyId}/cancel

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

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • assemblyIdidrequired

Body

Content-Type: application/json

  • reasonstring

    at most 500 characters · default ""

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

  • assemblyobject
    33 properties
    • _idid
    • createdAtstring · date-timenullable
    • updatedAtstring · date-timenullable
    • removedAtstring · date-timenullable
    • createdByobjectnullable
    • updatedByobjectnullable
    • removedByobjectnullable
    • __ignoreTriggersstringnullable
    • organizationid
    • mandateid
    • shortIdstring

      exactly 6 characters

    • titlestring

      1–120 characters

    • kindstring
      general delegates board written
    • formatstring
      inPerson hybrid online written
    • timezonestring

      at least 1 characters

    • periodobjectnullable
      2 properties
      • startstring · date-time
      • endstring · date-timenullable
    • votingPeriodobjectnullable
      2 properties
      • opensAtstring · date-time
      • closesAtstring · date-time
    • placeobjectnullable
      5 properties
      • typestring
        resource address online
      • resourceobject
        6 properties
        • siteid
        • siteNamestring

          at least 1 characters

        • siteAddressobject
          7 properties
          • countrystring
          • statestring
          • zipstring

            at most 10 characters

          • citystring

            at most 45 characters

          • addressLinestring

            at most 45 characters

          • details1string

            at most 45 characters

          • details2string

            at most 45 characters

        • resourceid
        • resourceNamestring
        • quantityinteger
      • addressobject
        7 properties
        • countrystring
        • statestring
        • zipstring

          at most 10 characters

        • citystring

          at most 45 characters

        • addressLinestring

          at most 45 characters

        • details1string

          at most 45 characters

        • details2string

          at most 45 characters

      • locationobjectnullable
        2 properties
        • latitudenumber

          -90–90

        • longitudenumber

          -180–180

      • onlineobject
        2 properties
        • urlstring · uri

          at most 300 characters

        • instructionsstring

          at most 400 characters

    • onlineUrlstring · urinullable

      at most 300 characters

    • statusstring
      draft invited running closed canceled
    • agendaobject[]

      at most 100 items

      7 properties
      • _idid
      • kindstring
        regular otherBusiness
      • titlestring

        1–200 characters

      • descriptionstring

        at most 20000 characters

      • attachmentsobject[]

        at most 20 items

        5 properties
        • resourcestring

          at least 1 characters

        • fileNamestring

          at most 128 characters

        • contentTypestring

          at most 75 characters

        • fileSizeBytesinteger

          at least 0

        • idstring

          exactly 6 characters

      • inInvitationboolean
      • minutesNotestring

        at most 20000 characters

    • registerobject
      3 properties
      • ruleobject
        5 properties
        • contactTypesstring[]
          member address customer sponsor contributor employee supplier
        • segmentsstring[]

          each 1–30 characters

        • departmentsid[]
        • tagsstring[]

          at most 20 items · each 1–40 characters

        • minimumAgeintegernullable

          0–120

      • referenceDatestring
      • builtAtstring · date-timenullable
    • officersobject
      2 properties
      • chairidnullable
      • minutesTakeridnullable
    • settingsobject
      9 properties
      • votingobject
        5 properties
        • motionKindstring
          secret named paper
        • electionKindstring
          secret named paper
        • defaultMajoritystring
          simple absolute twoThirds threeQuarters allMembers relative
        • showCounterboolean
        • resultsVisibleTostring
          participants voters managers
      • presenceobject
        4 properties
        • selfCheckInboolean
        • qrCheckInboolean
        • quorumobject
          2 properties
          • kindstring
            none share count
          • valuenumber

            at least 0

        • presenceRequiredboolean
      • proxiesobject
        7 properties
        • allowedboolean
        • formstring
          text signed
        • maxPerHolderinteger

          1–20

        • holderMustBeVoterboolean
        • selfServiceboolean
        • deadlinestring · date-timenullable
        • principalVotesWhenPresentboolean
      • weightsobject
        1 property
        • enabledboolean
      • statuteobject
        1 property
        • clausesobject
          5 properties
          • writtenResolutionstringnullable

            at most 500 characters

          • relativeMajoritystringnullable

            at most 500 characters

          • onlinestringnullable

            at most 500 characters

          • absenteestringnullable

            at most 500 characters

          • minutesSignatoriesstringnullable

            at most 500 characters

      • retentionobject
        1 property
        • ballotsKeptMonthsinteger

          1–120

      • accessobject
        2 properties
        • appboolean
        • linkboolean
      • noticeobject
        1 property
        • daysinteger

          0–365

      • motionsobject
        2 properties
        • submissionsAllowedboolean
        • submissionDeadlinestring · date-timenullable
    • invitationobject
      7 properties
      • subjectstring

        at most 200 characters

      • bodystring

        at most 20000 characters

      • channelsstring[]
        email letter app
      • documentsobject[]

        at most 10 items

        5 properties
        • resourcestring

          at least 1 characters

        • fileNamestring

          at most 128 characters

        • contentTypestring

          at most 75 characters

        • fileSizeBytesinteger

          at least 0

        • idstring

          exactly 6 characters

      • sentAtstring · date-timenullable
      • sentByobjectnullable
      • lateByintegernullable

        at least 0

    • minutesobject
      5 properties
      • statusstring
        draft final
      • notesstring

        at most 50000 characters

      • documentobjectnullable
        4 properties
        • resourcestring

          at least 1 characters

        • fileNamestring

          at most 128 characters

        • contentTypestring

          at most 75 characters

        • fileSizeBytesinteger

          at least 0

      • confirmationsobject[]

        at most 10 items

        2 properties
        • participantid
        • atstring · date-time
      • finalizedAtstring · date-timenullable
    • screenLinksobject[]

      at most 32 items

      5 properties
      • idstring

        8–32 characters

      • namestring

        1–60 characters

      • tokenstring

        exactly 32 characters

      • createdAtstring · date-time
      • lastUsedAtstring · date-timenullable
    • deskLinksobject[]

      at most 32 items

      5 properties
      • idstring

        8–32 characters

      • namestring

        1–60 characters

      • tokenstring

        exactly 32 characters

      • createdAtstring · date-time
      • lastUsedAtstring · date-timenullable
    • blocksRoomboolean
    • statisticsobject
      6 properties
      • votersobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

      • guestsinteger

        at least 0

      • externalsinteger

        at least 0

      • presentobject
        2 properties
        • countinteger

          at least 0

        • weightnumber

          at least 0

      • votesinteger

        at least 0

      • decidedinteger

        at least 0

    • cancelationobjectnullable
      3 properties
      • canceledAtstring · date-time
      • canceledByobject
      • reasonstring

        at most 500 characters

    • closedAtstring · date-timenullable
    • ballotsDeletedAtstring · date-timenullable
Response200
{
  "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.