Workspace

Rename a document

DB-only rename; re-slugs the basename from name while preserving the directory prefix and extension; the document id is stable. A collision with another live document at the derived path → 409 DOCUMENT_PATH_TAKEN.

patch/workspaces/{workspaceId}/documents/{documentId}

Request

  • Base URL
    https://origami.chat/api/v2
  • URL
    https://origami.chat/api/v2/workspaces/{workspaceId}/documents/{documentId}
  • Auth
    HTTP bearer

Request body

namestring required

Response

The renamed document summary.

object'document' required
idstring uuid required
documentIdstring uuid required

Legacy alias of id, kept for pre-restructure consumers.

filenamestring required

Last segment of the VFS path: the user-facing filename.

vfsPathstring required
kindstring required
statusstring required
createdAtstring date-time required
updatedAtstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.