Updates metadata of the specified JavaScript mapping file using an application/json payload.
| PUT | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/jsMappingFiles/metadata |
| Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/jsMappingFiles/metadata |
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.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| minifiedJsFileUrl | string | The URL of the minified JavaScript file. | query | required |
| fileType | string | The type of the JavaScript mapping file.
| query | required |
| body | Java | The JSON body of the request. Contains updated metadata of the file. | body | optional |
JavaScriptMappingFileMetadataDto object| Element | Type | Description | Required |
|---|---|---|---|
| pinned | boolean | Whether the file is pinned and therefore not automatically deleted. | optional |
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}
| Code | Type | Description |
|---|---|---|
| 200 | Java | Success. Metadata updated. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
JavaScriptMappingFileDto object| Element | Type | Description |
|---|---|---|
| fileName | string | The name of the file. |
| fileType | string | The type of the file.
|
| minifiedJsFileUrl | string | The minified JavaScript file URL to which the mapping file belongs to. |
| numberOfFiles | integer | The number of files. |
| pinned | boolean | Whether the file is pinned and therefore not automatically deleted. |
| size | integer | The size of the file, in KB. |
| uploadTimestamp | integer | The timestamp of the file upload, in UTC milliseconds. |
| zipped | boolean | Whether several files are zipped into one file. |
{"fileName": "string","fileType": "MINIFIED","minifiedJsFileUrl": "string","numberOfFiles": 1,"pinned": true,"size": 1,"uploadTimestamp": 1,"zipped": true}