JavaScript mapping files API - PUT JavaScript mapping file metadata

Updates metadata of the specified JavaScript mapping file.

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

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.

pathrequired
fileTypestring

The type of the JavaScript mapping file.

  • MINIFIED
  • SOURCE
  • SOURCEMAP
pathrequired
bodyJavaScriptMappingFileMetadataDto

The JSON body of the request. Contains updated metadata of the file.

bodyoptional

Request body objects

The JavaScriptMappingFileMetadataDto object

ElementTypeDescriptionRequired
pinnedboolean

Whether the file is pinned and therefore not automatically deleted.

optional

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.

{
"pinned": true
}

Response

Response codes

CodeTypeDescription
200JavaScriptMappingFileDto

Success. Metadata updated.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The JavaScriptMappingFileDto object

ElementTypeDescription
fileNamestring

The name of the file.

fileTypestring

The type of the file.

  • MINIFIED
  • SOURCE
  • SOURCEMAP
minifiedJsFileUrlstring

The minified JavaScript file URL to which the mapping file belongs to.

numberOfFilesinteger

The number of files.

pinnedboolean

Whether the file is pinned and therefore not automatically deleted.

sizeinteger

The size of the file, in KB.

uploadTimestampinteger

The timestamp of the file upload, in UTC milliseconds.

zippedboolean

Whether several files are zipped into one file.

Response body JSON model

{
"fileName": "string",
"fileType": "MINIFIED",
"minifiedJsFileUrl": "string",
"numberOfFiles": 1,
"pinned": true,
"size": 1,
"uploadTimestamp": 1,
"zipped": true
}