Skip to main content

Editing documents

You can edit Document properties by calling Document.edit().

Document.edit(options): Promise<Document>#

  • options (Object) The properties of the document to edit
  • options.name (string) Updates the name of the document
  • options.isPublic (boolean) Change the isPublic flag of the document.

Example

const user = await client.loginAnonymously("Joe");
const document = await user.getDocument("123");
await document.edit({
name: "new-doc-name.pdf",
isPublic: true
})