provider notebooks POST /api/projects/{project_id}/notebooks/{short_id}/collab/markdown_save/
@utdk/posthog /api/projects/{project_id}/notebooks/{short_id}/collab/markdown_save/
notebooks_collab_markdown_save_create
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
short_id path required
string

Try it

Authentication
Configure credentials for PostHog API
notebooksCollabMarkdownSaveCreate
POST/api/projects/{project_id}/notebooks/{short_id}/collab/markdown_save/
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

Input

required

Unique identifier for the client session, used to skip self-echo on the update stream.

required

The notebook version the submitted content is based on (optimistic concurrency baseline).

required

The full markdown notebook document: a ProseMirror doc wrapping a single markdown node.

Plain text for search indexing.

Updated notebook title.

The author's caret in the saved markdown, broadcast with the update so other clients can move the author's remote caret together with the text change.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.notebooksCollabMarkdownSaveCreate()