Create a document
POST/api/documents
Creates a new document with an empty body, with the caller as its creator (userId), and returns its metadata. It goes into the workspace given by workspaceId, or into the caller's private workspace if that is omitted or null. title defaults to empty; untitled documents do not appear in GET /api/documents or in workspace document counts until they get a title. Write the body over the WebSocket, or fill it with POST /api/documents/{id}/import. Requires a signed-in user; with workspaceId, the caller must be an admin or editor of that workspace (403 otherwise).
Request
Responses
- 201
- 400
- 403
Created document.
Request failed.
Request failed.