Skip to content
campaiDeveloper
campai.com

Misc ยท Wiki

POST/{organizationId}/misc/wiki/pages/{pageId}/public-link

Create public link

Lets anyone with the link read a page and its subpages, in the Community-App or on the web. Returns the token of the link, the same one again when the page has a link already.

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 without the limit to assigned items
Also checked, depending on the request and the records it touches
  • { wiki: { [permission]: true } }

Request

Path parameters

  • organizationIdidrequired
  • pageIdidrequired
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/public-link' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • publicTokenstring

    at most 64 characters

Response200
{
  "publicToken": "string"
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.