Try it free

Generate a passcode for a dashboard share

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Generate a new passcode for one of your Dynatrace dashboard shares with the Public Access API, for example to rotate access to a passcode-protected link.

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

Overview

You use the shareId path parameter to choose one of your passcode-protected dashboard shares and generate a new passcode for it, for example to rotate access after the old passcode was shared too widely. Viewers then need the new passcode to open the public link. A 201 response confirms that the passcode was generated.

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
shareIdstring

The UUID of the share config

pathRequired

Response

Response codes

CodeTypeDescription
201PasscodeResponse

Passcode generated

404--
4XX--
5XX--

Response body objects

The PasscodeResponse object

ElementTypeDescription
passcodestring

The passcode for the share config

Response body JSON models

{
"passcode": "string"
}
Related tags
Platform APIDynatrace Platform