Try it free

Restore a trashed document

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Restore a trashed document in Dynatrace with the Document API, bringing back the deleted document and its previous access for all users.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/document/v1/trash/documents/{id}/restore

Overview

You provide the document id in the path and may use admin-access in the query. The operation returns no content and restores the document from trash, including access for users who had it before deletion.

Authentication

To execute this request, you need a platform token or OAuth access token with document:trash.documents:restore scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

System-generated or user-given id of a document.

pathRequired
admin-accessboolean

Indicates whether the operation should be performed with elevated permissions - additionally requires document:documents:admin.

If provided, the user effectively operates as owner of all documents. This isn't supported for ready-made documents.

queryOptional

Response

Response codes

CodeDescription
204

The document has been restored.

401-
403-
404-
500-
503-
default-
Related tags
Platform APIDynatrace Platform