Skip to Content
Docs

Create or overwrite a wiki page (human edit)

PUT
/api/sources/{source_id}/wiki/page

Create or overwrite a wiki page (human edit). Write access required; a stale expected_version returns 409.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

source_id*string

Request Body

application/json
  1. body
content*string

Markdown content

expected_version?integer

Optimistic-lock version from the last read

path*string

Page path

Response Body

Success

Example Request
curl -X PUT 'http://localhost:7091/api/sources/string/wiki/page' \  -H 'Content-Type: application/json' \  -d '{  "content": "string",  "path": "string"}'
Example Response200
Empty