Try it free

Update any dashboard share as an admin

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Update any dashboard share in your Dynatrace environment as an admin with the Public Access API, such as its expiration date, passcode, or iframe embedding.

PUTSaaShttps://{your-environment-id}.apps.dynatrace.com/v1/admin/shares/{shareId}

Overview

You use this admin operation with the shareId path parameter to change any dashboard share configuration in your environment, regardless of who created it. The request body can set expirationDate, passcode, and iframeEmbedding, for example to shorten a link's lifetime or require a passcode. A 200 response returns the updated configuration.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
shareIdstring

The UUID of the share config

pathRequired
bodyUpdateAdminShareRequest-bodyRequired

Request body objects

The UpdateAdminShareRequest object

ElementTypeDescriptionRequired
expirationDatestring

Expiration date in ISO 8601 format

Optional
passcodePasscodeInput-Required
iframeEmbeddingIframeEmbedding-Required

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.

{
"expirationDate": "2030-01-01T00:00:00Z",
"passcode": {
"enabled": true
},
"iframeEmbedding": {
"enabled": true
}
}

Response

Response codes

CodeTypeDescription
200ShareResponse

Updated shared config

404--
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