RUM JavaScript code API - GET latest version

Returns the most recent version of the Real User Monitoring JavaScript code version 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 code request.

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

The request produces 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

Parameters

The request doesn't provide any configurable parameters.

Response format

The response in the plain text, showing the most recent RUM JavaScript code version.

Example

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

The API token is passed in the Authorization header.

The most recent RUM JavaScript code 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