context_layer
context_layer

Create or replace a wiki page

The organization's context wiki: a git repo of Markdown pages hosted by PostHog.

put/api/organizations/{organization_id}/context_layer/pages/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/organizations/{organization_id}/context_layer/pages/
  • Auth: HTTP bearer

Path parameters

organization_idstring required

ID of the organization you're trying to access. To find the ID of the organization, make a call to /api/organizations/.

Request body

pathstring required

Repo-relative Markdown path inside the wiki's structure, for example projects/12/spaces/general.md.

contentstring required

The complete Markdown content for the page.

base_headstring nullable

Optimistic-concurrency guard: the head sha the edit is based on. A moved head is rejected with 409 and the current head; omit to write unguarded.

Response

head_shastring required

Commit sha of the wiki's current head.

Changes

No recorded changes to this operation across all 1 revision of this API.