Try it free

Create a dashboard share

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Create a public share for a Dynatrace dashboard with the Public Access API, with settings such as passcode, expiration date, locale, timezone, and timeframe.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/v1/shares

Overview

You use this operation to share a dashboard document publicly. The request body sets fields such as documentId, name, locale, timezone, expirationDate, timeframe, segments, variables, passcode, refreshIntervalMinutes, and iframeEmbedding. A 201 response returns the created share configuration.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
bodyCreateShareRequest-bodyRequired

Request body objects

The CreateShareRequest object

ElementTypeDescriptionRequired
typestring

Share type discriminator

The element can hold these values
  • dashboard
Required
documentIdstring

ID of the document being shared

Required
localestring

Locale for the current user. ISO-639 language code with optional ISO-3166 country code, separated by a hyphen or underscore (e.g. en-US, de-AT, fr).

Required
timezonestring

Timezone for the current user. IANA time zone ID (e.g. Europe/Vienna, UTC, America/New_York).

Required
namestring

Name of the share

Required
sessionTimeoutMinutesinteger

Session timeout in minutes (ignored when passcode.enabled is false)

Optional
refreshIntervalMinutesinteger

Refresh interval in minutes

Required
expirationDatestring

Expiration date in ISO 8601 format

Optional
variablesobject

Dashboard variables

Optional
timeframeTimeframe

Timeframe override

Required
segmentsFilterSegment[]

Filter segments

Optional
passcodePasscodeInput-Required
iframeEmbeddingIframeEmbedding-Required

The Timeframe object

ElementTypeDescriptionRequired
fromstring

Start of the timeframe as a relative or absolute expression parseable by the Dynatrace time parser (e.g. now()-2h, -1d@d, 2024-01-01T00:00:00Z).

Required
tostring

End of the timeframe as a relative or absolute expression parseable by the Dynatrace time parser (e.g. now(), -1h@h, 2024-12-31T23:59:59Z).

Required

The FilterSegment object

ElementTypeDescriptionRequired
idstring

Segment ID

Optional
variablesFilterSegmentVariable[]-Optional

The FilterSegmentVariable object

ElementTypeDescriptionRequired
namestring

Variable name

Optional
valuesstring[]

Variable values

Optional

The PasscodeInput object

ElementTypeDescriptionRequired
enabledboolean

Whether passcode protection is enabled for the share config

Required

The IframeEmbedding object

ElementTypeDescriptionRequired
enabledboolean

Whether iframe embedding is enabled for this share

Required

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.

{
"type": "dashboard",
"documentId": "b164c95f-da88-4967-8c4d-e5ff2619cfdb",
"locale": "en",
"timezone": "Europe/Vienna",
"name": "string",
"sessionTimeoutMinutes": 1,
"refreshIntervalMinutes": 1,
"expirationDate": "2030-01-01T00:00:00Z",
"variables": {},
"timeframe": {
"from": "now()-2h",
"to": "now()"
},
"segments": [],
"passcode": {
"enabled": true
},
"iframeEmbedding": {
"enabled": true
}
}

Response

Response codes

CodeTypeDescription
201ShareResponse

Share config created

400--
4XX--
5XX--

Response body objects

The ShareResponse object

ElementTypeDescription
idstring

Share UUID

documentIdstring

ID of the document being shared

namestring

Name of the share

expirationDatestring

Expiration date in ISO 8601 format

creationDatestring

Creation date of the share in ISO 8601 format

variablesobject

Dashboard variables

timeframeTimeframe

Timeframe override

filterSegmentsFilterSegment[]

Filter segments

localestring

Locale (e.g. en-US)

timezonestring

Timezone (e.g. Europe/Vienna)

typestring

Share type

The element can hold these values
  • dashboard
sessionTimeoutMinutesinteger

Session timeout in minutes; null when passcode is disabled

refreshIntervalMinutesinteger

Refresh interval in minutes

ipAllowListobject-
passcodePasscodeInfo-
iframeEmbeddingIframeEmbedding-
documentSnapshotDatestring

Date when the document snapshot was captured in ISO 8601 format

documentVersioninteger

Document version at the time the snapshot was captured

The Timeframe object

ElementTypeDescription
fromstring

Start of the timeframe as a relative or absolute expression parseable by the Dynatrace time parser (e.g. now()-2h, -1d@d, 2024-01-01T00:00:00Z).

tostring

End of the timeframe as a relative or absolute expression parseable by the Dynatrace time parser (e.g. now(), -1h@h, 2024-12-31T23:59:59Z).

The FilterSegment object

ElementTypeDescription
idstring

Segment ID

variablesFilterSegmentVariable[]-

The FilterSegmentVariable object

ElementTypeDescription
namestring

Variable name

valuesstring[]

Variable values

The PasscodeInfo object

ElementTypeDescription
enabledboolean

Whether passcode protection is enabled

valuestring

The passcode value; null when passcode is disabled

The IframeEmbedding object

ElementTypeDescription
enabledboolean

Whether iframe embedding is enabled for this share

Response body JSON models

{
"id": "string",
"documentId": "string",
"name": "string",
"expirationDate": "string",
"creationDate": "string",
"variables": {},
"timeframe": {
"from": "now()-2h",
"to": "now()"
},
"filterSegments": [
{
"id": "string",
"variables": [
{
"name": "string",
"values": [
"string"
]
}
]
}
],
"locale": "string",
"timezone": "string",
"type": "dashboard",
"sessionTimeoutMinutes": 1,
"refreshIntervalMinutes": 1,
"ipAllowList": {
"enabled": true
},
"passcode": {
"enabled": true,
"value": "string"
},
"iframeEmbedding": {
"enabled": true
},
"documentSnapshotDate": "string",
"documentVersion": 1
}
Related tags
Platform APIDynatrace Platform