Skip to content
campaiDeveloper
campai.com

Misc · Wiki

POST/{organizationId}/misc/wiki/versions/{versionId}/restore

Restore version

Gives a page back the title, emoji and content of one of its saves. The restored state is a new save in its history, so the state before stays 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 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
  • versionIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/misc/wiki/versions/YOUR_VERSION_ID/restore' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

No response body is specified.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.