Skip to main content

The TempFileService service exposes the following operations:

  • create: to create a temporary file
  • getContent: to retrieve a temporary file
  • delete: to delete a temporary file

Creating a temporary file

The following examples show how to create a temporary file.


CREATE:

POST {{core}}/rest/files/tmp HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
file: temporary file to create

-- Headers --
token: {{token}}
Content-Type: application/json

Recovering a temporary file

The following examples show how to recover a temporary file.


GET CONTENT:

GET {{core}}/rest/files/tmp/{id} HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
id: id of the temporary file

-- Headers --
token: {{token}}
Content-Type: application/json

Deleting a temporary file

The following examples show how to delete a temporary file.


DELETE :

DELETE {{core}}/rest/files/tmp/{id} HTTP/1.1

-- URL parameters --
core: FlowerDocs Core host
id: id of the temporary file

-- Headers --
token: {{token}}
Content-Type: application/json