Grist Octri Preview
PATCH/docs/{docId}/move

Move a document to another workspace

Moves a document to another workspace. Supply the target workspace's integer identifier in workspace; the request body may be omitted.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
docIdstringrequired
The document's UUID.

The target workspace for the move; the body schema requires workspace.

workspaceintegerrequired
The integer identifier of the target workspace.

1 status code
200Returns an empty body after moving the document to the target workspace.

Error handling

The docId path parameter must be a string UUID. If you include a request body, it must contain workspace as an integer identifying the target workspace.