Operation file

Create, rename, move, copy or revert a file within the token's library. Requires a token with rw permission.

  • create: creates an empty file at path. For .docx, .xlsx and .pptx an empty Office document is created. For .sdoc files the response additionally contains doc_uuid.
  • rename: renames the file to newname. newname must differ from the current name.
  • move / copy: moves or copies the file to the directory dst_dir (only within the same library). Locked files cannot be moved.
  • revert: restores the file content from the commit commit_id.

If the target name already exists, the file is renamed automatically (e.g. file (1).md).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Path to the file

Body Params
string
enum
Allowed:
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

400

Invalid path, operation, newname, dst_dir or commit_id

403

Permission denied (token without rw permission) or file is locked

404

Library, file or folder not found

447

The number of files in the library exceeds the limit

Language
Credentials
Bearer
API-Token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json