provider notebooks POST /api/projects/{project_id}/notebooks/{short_id}/collab/save/
@utdk/posthog /api/projects/{project_id}/notebooks/{short_id}/collab/save/
notebooks_collab_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
notebooksCollabSaveCreate
POST/api/projects/{project_id}/notebooks/{short_id}/collab/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.

required

The collab version the client's steps are based on.

required

List of ProseMirror step JSON objects to apply.

required

The resulting ProseMirror document after applying the steps locally.

Plain text for search indexing.

Updated notebook title.

ProseMirror cursor head position after applying steps.

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.notebooksCollabSaveCreate()