[BUG] - Not able to initialize a room storage with API endpoint
See original GitHub issueHi there, i am trying to do POST call to https://liveblocks.net/api/v1/room/:roomId/storage/json with some sample data which contains shapes of tldraw board, but its not working. It’s not saving that json on liveblocks storage against that room. Not able to figure out what is the expected JSON for API, also nothing specific mentioned in documentations or examples as well.
Here is the sample JSON i am trying to pass
{ shapes: { heading: { id: "heading", childIndex: 1, parentId: "page1", name: "Text", type: "text", point: [200, 10], style: { dash: "draw", size: "small", color: "black", }, text: "Something exciting here...", }, __liveblocksType: "LiveMap", }, bindings: { __liveblocksType: "LiveMap", }, assets: { __liveblocksType: "LiveMap", }, }
Issue Analytics
- State:
- Created a year ago
- Comments:12 (3 by maintainers)
Top GitHub Comments
hey @ofoucherot Thanks for the new update. This is now working perfectly fine with new endpoints.
@AdityaRajSingh A fix has been deployed yesterday. You can now initialize a room that already exists (created by the authorize endpoint), if the storage is empty.