RUM JavaScript API - GET latest version

Returns the most recent version of the Real User Monitoring JavaScript available for your environment.

The version is a natural number, a higher number indicates a newer version. You can check the version you actually use by executing the GET the current version of the Real User Monitoring JavaScript request.

If a newer version is available, we recommend that you update the RUM JavaScript in your applications. You can get the most recent RUM JavaScript either as HTML tag or inline code.

The request produces a plain/text payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/rum/jsLatestVersion
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/rum/jsLatestVersion
  • Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v1/rum/jsLatestVersion

Authentication

To execute this request, you need the Real user monitoring JavaScript tag management (RumJavaScriptTagManagement) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

Parameters

The request doesn't provide any configurable parameters.

Response

The response is a plain text, showing the most recent RUM JavaScript version.

Example

In this example, the request inquires the latest version of the RUM JavaScript, available for the environment.

The API token is passed in the Authorization header.

The most recent RUM JavaScript is 10156181011154332.

Curl

curl -X GET \
  https://mySampleEnv.live.dynatrace.com/api/v1/rum/jsLatestVersion \
  -H 'Authorization: Api-Token abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v1/rum/jsLatestVersion

Response body

10156181011154332

Response code

200