RUM JavaScript API - GET available RUM JavaScript versions

  • Reference
  • Published Apr 15, 2025

Fetch a list of all versions of the RUM JavaScript that are available on the environment.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v1/rum/jsAllAvailableVersions
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v1/rum/jsAllAvailableVersions

Authentication

To execute this request, you need an access token with RumJavaScriptTagManagement scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

CodeTypeDescription
200AllAvailableVersions

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The AllAvailableVersions object

All available RUM JavaScript versions

ElementTypeDescription
versionsinteger[]

A list of available RUM JavaScript versions

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"versions": [
10158181011154332,
10156181011154332,
10154181011154334,
10152181011154336
]
}
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Example

In this example, the request inquires the available RUM JavaScript versions.

The API token is passed in the Authorization header.

Curl

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

Request URL

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

Response body

{
"versions": [
10158181011154332,
10156181011154332,
10154181011154334,
10152181011154336
]
}

Response code

200