Try it free

Create a document

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Create a document in Dynatrace with the Document API, setting its name, type, content, and sharing options while returning the new document metadata.

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

Overview

Create a new document. You are the owner of the created document. By default the document isn't accessible to other users; set isPrivate to false to immediately make it public (readable by every user of the environment).

The document's name and type must be provided. These two properties can later be used for filtering purposes, when listing accessible documents.

Be aware, that the type isn't the same as the Content-Type of the document, but instead adds user-defined semantics of which the document-store is entirely agnostic.

The content size must not exceed 50 MB.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
bodyobject-bodyRequired

Request body objects

The RequestBody object

ElementTypeDescriptionRequired
namestring

The name of this document. This name doesn't need to be unique and is not used as identifier. Maximum length is 128 characters.

Required
typestring

The type of this document. This type is not the Content-Type of the document, but instead adds a user-defined semantic. Maximum length is 128 characters.

Required
descriptionstring

Optional description of this document. Maximum length is 256 characters.

Optional
contentstring

The binary content of this document. Its exact type is taken from the Content-Type header, which is thus mandatory.

Required
idstring

Optional. If provided, this will be the id of the document. If not provided, a system-generated id is used. The following constraints apply:

  • It must be unique in this environment
  • Allowed characters: A-Z a-z 0-9 -.
  • It must not be a UUID, however it can contain a UUID, so e.g. my-e015739d-da78-4fe4-bef1-e95c2420bc25 is allowed, while e015739d-da78-4fe4-bef1-e95c2420bc25 isn't allowed.
  • Maximum length is 100 characters.
Optional
externalIdstring

DEPRECATED

Deprecated. Use the id property instead.

An optional user-provided id, in addition to the system-provided id. The following constraints apply:

  • It must be unique in this environment
  • Allowed characters: A-Z a-z 0-9 -.
  • It must not be a UUID, however it can contain a UUID, so e.g. my-e015739d-da78-4fe4-bef1-e95c2420bc25 is allowed, while e015739d-da78-4fe4-bef1-e95c2420bc25 isn't allowed.
  • Maximum length is 100 characters.
Optional
isPrivateboolean

Controls whether this document is public. Public documents can be read by every user of the environment. Optional - if not provided, the document is private.

Optional

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"name": "",
"type": "",
"description": "",
"content": "string",
"id": "",
"externalId": "",
"isPrivate": null
}

Response

Response codes

CodeDescription
201-
400-
401-
403-
409-
413-
500-
503-
507-
default-
Related tags
Platform APIDynatrace Platform