Try it free

Upload an extension

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Upload a new Extension 2.0 in Dynatrace with the Extensions API and persist the package for later use.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions

Overview

You upload a new Extension 2.0 with the request body. The operation returns 201 when Dynatrace accepts the extension and stores it.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
bodystring

Extension 2.0 zip file to upload.

bodyRequired

Request body objects

The RequestBody object

Response

Response codes

CodeTypeDescription
201ExtensionUploadResponse

Success. Extension 2.0 has been uploaded.

400ErrorEnvelope

Failed. The input file is invalid.

409ErrorEnvelope

Upload isn't possible yet. Try again in a few seconds.

4XXErrorEnvelope

Client error.

5XXErrorEnvelope

Server error.

Response body objects

The ExtensionUploadResponse object

ElementTypeDescription
assetsInfoUploadResponseAssetInfo[]

Information about extension assets included

authorAuthor

Extension author

dataSourcesstring[]

Data sources that extension uses to gather data

extensionNamestring

Extension name

featureSetsstring[]

Available feature sets

featureSetsDetailsobject

Details of feature sets

fileHashstring

SHA-256 hash of uploaded Extension file

minDynatraceVersionstring

Minimal Dynatrace version that works with the extension

minEECVersionstring

Minimal Extension Execution Controller version that works with the extension

variablesstring[]

Custom variables used in extension configuration

versionstring

Extension version

The UploadResponseAssetInfo object

Information about extension assets included

ElementTypeDescription
assetTypestring-
countinteger-

The Author object

Extension author

ElementTypeDescription
namestring

Author name

The FeatureSetDetails object

Additional information about a Feature Set

ElementTypeDescription
descriptionstring

Optional description for the feature set

displayNamestring

Optional display name of the feature set

isRecommendedboolean

Marks the feature set as recommended (selected by default during activation)

metricsMetric[]

Feature set metrics

The Metric object

Metric gathered by an extension

ElementTypeDescription
keystring

Metric key

metadataMetricMetadata

Metric metadata

The MetricMetadata object

Metric metadata

ElementTypeDescription
descriptionstring

A short description of the metric

displayNamestring

The name of the metric in the user interface

unitstring

The unit of the metric

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code.

detailsErrorDetails

The error details.

messagestring

The error message.

The ErrorDetails object

The error details.

ElementTypeDescription
constraintViolationsConstraintViolation[]

A list of constraint violations.

The ConstraintViolation object

A list of constraint violations.

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"assetsInfo": [
{
"assetType": "string",
"count": 1
}
],
"author": {
"name": "string"
},
"dataSources": [
"string"
],
"extensionName": "string",
"featureSets": [
"string"
],
"featureSetsDetails": {},
"fileHash": "string",
"minDynatraceVersion": "string",
"minEECVersion": "string",
"variables": [
"string"
],
"version": "1.2.3"
}
{
"error": {
"code": 1,
"details": {
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
]
},
"message": "string"
}
}
Related tags
Platform APIDynatrace PlatformInfrastructure Observability