post
https://{server}/api/v2.1/repos//file/
Performs an operation on the file given in p.
create: creates an empty file (create right on the parent folder required). Existing names are renamed automatically..docx,.xlsx,.pptxand.docxffiles are created from an Office template. For.sdocfiles the response additionally containsdoc_uuid, for.exdrawfilesfile_uuid.rename: requiresnewname(must differ from the old name, max. length limited by the server). Returns the file info of the renamed file.move: requiresdst_repoanddst_dir; read-write permission on source and destination folder. Existing names in the destination are renamed automatically.copy: requiresdst_repoanddst_dir; copy right on the source folder, read-write on the destination folder.revert: requirescommit_id; restores the file version of that commit.convert(new in SecureCloud 13.0): requiresdst_type. Converts.md->sdoc,.docx->sdocor.sdoc->markdown/docx; a new file is created next to the original. Requires the document file converter on the server.
Rename/move/revert/convert fail with 403 File is locked if the file is locked by another user.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…