Try it free

Pin or unpin a JavaScript mapping file

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Pin or unpin a JavaScript source mapping file in Dynatrace symbol file storage with the Deobfuscation API to protect it from automatic deletion.

PUTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/rum/deobfuscation/v1/symbol-files/js/{fileType}/pinned

Overview

You use this operation to change the pinned state of a JavaScript mapping file in symbol file storage. A pinned file is protected from automatic deletion. The fileType path parameter and the minifiedJsFileUrl query parameter identify the file, and the pinned field of the request body sets the new state.

Authentication

To execute this request, you need a platform token or OAuth access token with deobfuscation:symbol-files:write scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
fileTypestring

Type of the JavaScript file the mapping belongs to.

The element can hold these values
  • MINIFIED
  • SOURCE
  • SOURCEMAP
pathRequired
minifiedJsFileUrlstring

URL of the minified JavaScript file whose mapping should be pinned or unpinned.

queryRequired
bodyPinJsSymbolFileRequest

Request body for pinning or unpinning a JavaScript mapping file.

bodyRequired

Request body objects

The PinJsSymbolFileRequest object

Request body for pinning or unpinning a JavaScript mapping file.

ElementTypeDescriptionRequired
pinnedboolean

Whether to pin the symbol file and protect it from automatic deletion.

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.

{
"pinned": true
}

Response

Response codes

CodeTypeDescription
200JsMappingFile

Symbol file pinned state updated successfully.

400--
401--
403--
404--
500--
501--
503--

Response body objects

The JsMappingFile object

JavaScript mapping file information.

ElementTypeDescription
fileNamestring

The file name of the JavaScript mapping file.

fileTypestring

The type of the JavaScript file (e.g. MINIFIED, SOURCE, SOURCEMAP).

minifiedJsFileUrlstring

The URL of the minified JavaScript file this mapping belongs to.

numberOfFilesinteger

The number of files associated with this mapping entry.

pinnedboolean

Indicates whether the mapping file is pinned and protected from automatic deletion.

sizestring

The size of the stored mapping file in bytes.

uploadTimestampstring

The timestamp of when the mapping file was uploaded, in milliseconds since epoch.

zippedboolean

Indicates whether the mapping file is stored in a zipped format.

Response body JSON models

{
"fileName": "string",
"fileType": "string",
"minifiedJsFileUrl": "string",
"numberOfFiles": 1,
"pinned": true,
"size": "string",
"uploadTimestamp": "string",
"zipped": true
}
Related tags
Platform APIDynatrace Platform