User Tools

Site Tools


api:file:delete

API : File Delete

Introduction

Delete a file.

Request

URL https://api.telecomx.dk/file/ID
Method DELETE
Access level MANAGER and up, subject to the file's accessLevel. Files of type PORTING, INTERNET and OTHER can only be deleted by RESELLER_ADMIN and up.
Param ID Id of the document (24 hex-char string)

Query example

DELETE https://api.telecomx.dk/file/1234567890ABCDEF12345678

Response

Json object
success Boolean True on success

Example

{
  "success": true
}

Errors

Error code Message Description
422 id File id is invalid
404 id Not found
403 type This file can not be deleted (system file types or missing uploader)
403 accessLevel No access to this folder
409 folder The folder can not be deleted if not empty
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/file/delete.txt · Last modified: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki