[DELETE] /trash

[DELETE] /trash

/api/dms/objects/{objectId}/actions/trash

Description

This endpoint of the Core-API is a Alias for the deletion endpoint. It triggers the deletion endpoint with the parameters hardDelete=true and cascadeDelete=true. You can delete with this endpoint objects from the recycle bin. For this you need the system role 40 (delete objects from recycle bin).

Request
Method

DELETE

Request optional Query Parameter

  • objectTypeId (String): The objectTypeId for the object to delete. This speed up the query.

Response
Statuscodes

Success: HTTP 204 No Content

Defined Errors

  • 1001 (HTTP 404): Object not found.

  • 1100 (HTTP 400): The object seems to be already in the recycle bin or you have no rights to delete it.

  • 1100 (HTTP 400): You are not allowed to load the recycle bin.

  • 3003 (HTTP 500): Internal Server error. Please look at the enaio server job monitor for detailed information.

Minimum Version

5.3.0

Request
Example

/api/dms/objects/2563/actions/trash