Pin or unpin a React Native source mapping file in Dynatrace symbol file storage with the Deobfuscation API to protect it from automatic deletion.
| PUT | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/rum/deobfuscation/v1/symbol-files/rn/{dtRumAppId}/{bundleName}/{platform}/{fileName}/{bundleVersion}/pinned |
You use this operation to change the pinned state of a React Native mapping file in symbol file storage. A pinned file is protected from automatic deletion. The dtRumAppId, bundleName, platform, fileName, and bundleVersion path parameters identify the file, for example a release you need to keep debuggable.
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.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| dtRumAppId | string | RUM application identifier the bundle belongs to. | path | Required |
| bundleName | string | Name of the React Native bundle. | path | Required |
| platform | string | Platform the bundle is built for. The element can hold these values
| path | Required |
| fileName | string | Name of the bundle file the mapping refers to. | path | Required |
| bundleVersion | string | Version of the React Native bundle. | path | Required |
| body | Pin | Request body for pinning or unpinning a React Native symbol file. | body | Required |
PinRnSymbolFileRequest objectRequest body for pinning or unpinning a React Native symbol file.
| Element | Type | Description | Required |
|---|---|---|---|
| pinned | boolean | Whether to pin the symbol file and protect it from automatic deletion. | Required |
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 | Rn | Symbol file pinned state updated successfully. |
| 400 | - | - |
| 401 | - | - |
| 403 | - | - |
| 404 | - | - |
| 500 | - | - |
| 501 | - | - |
| 503 | - | - |
RnSymbolFileInfoMetadata objectMetadata associated with a React Native symbol file.
| Element | Type | Description |
|---|---|---|
| pinned | boolean | Indicates whether the symbol file is pinned and protected from automatic deletion. |
| storedSizeInBytes | string | The size of the stored symbol file in bytes. |
| uploadTimestampInMilliseconds | string | The timestamp of when the symbol file was uploaded, in milliseconds since epoch. |
{"pinned": true,"storedSizeInBytes": "string","uploadTimestampInMilliseconds": "string"}