Skip to content
campaiDeveloper
campai.com

Misc · Wiki

POST/{organizationId}/misc/wiki/pages/{pageId}

Update page

Saves the title, emoji, tags and content of a page and keeps the result in its history, which holds its last 50 saves. Pictures and files of the content are given by their resource id: uploads of this save are moved to the page, pictures and files from other pages the caller reads are copied to it, and pictures and files it held before stay. Links in text go only to web, email and phone addresses.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • wiki.edit
  • wiki.edit; staff limited to assigned items only pages shared with them for editing and their subpages
Also checked, depending on the request and the records it touches
  • { wiki: { [permission]: true } }

Request

Path parameters

  • organizationIdidrequired
  • pageIdidrequired

Body

Content-Type: application/json

  • titlestringrequired

    at most 200 characters

  • emojistringrequirednullable

    at most 32 characters

  • contentobjectrequired
    5 properties
    • typestringrequired
      26 values
      doc paragraph text hardBreak heading bulletList orderedList listItem taskList taskItem details detailsSummary detailsContent blockquote callout horizontalRule table tableRow tableHeader tableCell columns column image file page mention
    • attrsobject of one of 4 types
      Keys: 1 pattern

      at most 64 characters

    • contentobject (recursive)[]

      at most 5000 items

    • marksobject[]

      at most 20 items

      2 properties
      • typestringrequired
        bold italic underline strike code link highlight
      • attrsobject of one of 4 types
        Keys: 1 pattern

        at most 64 characters

    • textstring

      at most 100000 characters

  • tagsstring[]required

    at most 20 items · each 1–50 characters

Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/misc/wiki/pages/YOUR_PAGE_ID' \
  --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

  • updatedAtstring · date-time
Response200
{
  "updatedAt": "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.