Move a document to a workspace
PUT/api/documents/:id/workspace
Moves the document into the workspace workspaceId, so that workspace's members get access by their role and the old workspace's members lose the access they had through it. The creator, direct shares, and updatedAt do not change. Sending null or omitting workspaceId takes the document out of every workspace (it does not go back to a private workspace), leaving access only to its creator and direct shares. Requires a signed-in user with write access to the document who is also an admin or editor of the target workspace; otherwise 403, including for an unknown workspace id.
Request
Responses
- 200
- 400
- 403
- 404
Document moved. The body is always {"status": "ok"}.
Request failed.
Request failed.
Request failed.