JavaScript mapping files API - PUT a JavaScript mapping file

  • Reference

Uploads a new or updates an existing JavaScript mapping file using a multipart/form-data payload.

PUTSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/jsMappingFiles/content
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/jsMappingFiles/content

Authentication

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

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

Parameters

ParameterTypeDescriptionInRequired
minifiedJsFileUrlstring

The URL of the minified JavaScript file.

queryRequired
fileTypestring

The type of the JavaScript mapping file.

The element can hold these values
  • MINIFIED
  • SOURCE
  • SOURCEMAP
queryRequired
bodyobject-bodyOptional

Request body objects

The RequestBody object

ElementTypeDescriptionRequired
filestring

JavaScript mapping file to upload.

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.

{
"file": "string"
}

Response

Response codes

CodeTypeDescription
200-

Success. The file has been uploaded and stored. Existing file replaced.

201-

Success. The file has been uploaded and stored.

413ErrorEnvelope

Failed. The symbol file storage quota is exhausted.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

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

{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}