Actions83
- AI Copilot Actions
- AI Knowledge Actions
- Attachment Actions
- Comment Actions
- Feed Actions
- Group Actions
- Inbox Actions
- Room Actions
- Storage Actions
- Thread Actions
- User Actions
- Delete Inbox Notification
- Get Inbox Notification
- Delete All Inbox Notifications
- Get Many Inbox Notifications
- Delete Notification Settings
- Get Notification Settings
- Update Notification Settings
- Delete Room Subscription Settings
- Get Room Subscription Settings
- Update Room Subscription Settings
- Get Many Room Subscription Settings
- Yjs Actions
Storage → JSON Patch
AI-generatedSummary
Apply a JSON Patch (RFC 6902) array of operations to a Liveblocks storage document within a specified room, modifying the document accordingly.
Inputs
- Room ID (required) — Specifies the identifier of the Liveblocks room containing the storage document to be patched.
- Body (required) — A JSON array representing the sequence of JSON Patch operations that describe the changes to apply to the storage document.
Output shape
The updated storage document as returned by the Liveblocks API after applying the JSON Patch operations.
The response includes the modified storage document reflecting the patch operations. If the request fails, an error is returned; optional debug information can be included if 'Include Request in Error' is enabled.
Examples
Example 1: Patch Liveblocks storage document
Set the Room ID to target the document and provide the JSON Patch array to specify changes such as adding, removing, or replacing JSON values within the document.