Docoon REST API provides to you the ability to manage hosted lists. These lists can then be used to create a job (parmeter Hosted into FileReference structure), the contents of the list should not be transmitted and will be recovered directly on Docoon servers.
This basic functionnality illustrate how to delete hosted list file.
Sending request Informations
Name: /HostedListFiles/{fileName}
Type: DELETE
Headers:
Name | Value |
Authorization | Value : Authorization token check : Connect to REST API |
Content-Type | Value : application/json |
Parameters list:
Parameter | Type | Description |
fileName | String | File name with extension (abc.txt). |
Delete hosted list file
DELETE /api/V1/HostedListFiles/TestList.tab HTTP/1.1 Host: api.odyssey-services.fr Content-Type: application/json Authorization: Basic EncodedLogin
Successful Response
Status : 200
NONE
Parameter | Type | Description |
Error Response
If the file was already deleted or is not yet created, you might get HTTP 404 error.
Status: 404: File not found
Parameter | Type | Description |
Code | Integer | Associated error code. |
Message | String | Associated massage. |
Error Response
{ "Code": 40401, "Message": "File TestList.tab does not exist" }