Skip to content
campaiDeveloper
campai.com

Misc ยท Wiki

POST/{organizationId}/misc/wiki/pages

Create page

Creates an empty page at the top level or below another page, last among the pages there.

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 below a page shared with them for editing
Also checked, depending on the request and the records it touches
  • { wiki: { [permission]: true } }

Request

Path parameters

  • organizationIdidrequired

Body

Content-Type: application/json

  • titlestringrequired

    at most 200 characters

  • emojistringrequirednullable

    at most 32 characters

  • parentIdidrequirednullable
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' \
  --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

  • _idid
Response200
{
  "_id": "000000000000000000000001"
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.