> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/methods/createwhiteboard.md).

# createWhiteboard()

Creates and opens a new whiteboard, and immediately persists it in the personal or room library.

You can optionally specify a parent library folder id. If folder is not specified, then whiteboard will be part of the default root library folder.

```javascript
//Creates the whiteboard in the room library
sambaFrame.createWhiteboard({personal: false});

//Creates the whiteboard in the personal library
sambaFrame.createWhiteboard({personal: true});

//Creates the whiteboard in the room library inside a concrete folder
sambaFrame.createWhiteboard({
    personal: false,
    folderId: '6d987ab4-9df2-45f2-a076-eec503cc6799'
});
```

**Sample use case**: \
You may have a button in your application to create a whiteboard on the fly.
