Skip to content
campaiDeveloper
campai.com

Misc · Assemblies

POST/{organizationId}/{mandateId}/misc/assemblies/{assemblyId}/invitation/update

Update invitation

Saves the subject, text, channels and documents of the invitation to a meeting. The agenda and each person's way to take part are added when it is sent. The invitation goes by email or letter as the statute asks; the app only adds a notification.

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

  • subjectstringrequired

    at most 200 characters

  • bodystringrequired

    at most 20000 characters

  • channelsstring[]required
    email letter app
  • documentsobject[]required

    at most 10 items

    3 properties
    • fileNamestring

      at most 128 characters

    • resourcestringrequired
    • idstring

      exactly 6 characters

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/invitation/update' \
  --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

  • 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

Response200
{
  "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
  }
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.