v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
RUM

Restore source maps

Restores previously deleted source maps matching the specified filter criteria. Supports dry-run mode to preview which source maps would be restored without performing the actual restoration.

patch/api/v2/sourcemaps/restore

Query parameters

mapkind'js' | 'jvm' | 'ios' | 'react' | 'flutter' | 'elf' | 'ndk' | 'il2cpp' required

The type of source map.

Example:js

The type of source map. Valid values are js, jvm, ios, react, flutter, elf, ndk, il2cpp.

dry_runboolean required
Example:true

When set to true, returns the source maps that would be restored without performing the actual restoration. When set to false, performs the restoration.

filter[service]string[]

Filter by service names (multiple values allowed). Required for js, jvm, react, and flutter map kinds.

[
  "my-web-service"
]
filter[version]string[]

Filter by version values (multiple values allowed, maximum 10). Required for js, jvm, react, and flutter map kinds.

[
  "1.0.0"
]
filter[variant]string[]

Filter by variant values (multiple values allowed). Supported for jvm.

filter[id]string[]

Filter by source map ID values (multiple values allowed). Supported for all map kinds.

filter[build_id]string[]

Filter by build ID values (multiple values allowed). Supported for jvm, ndk, and il2cpp.

filter[uuid]string[]

Filter by UUID values (multiple values allowed). Supported for ios.

filter[platform]string[]

Filter by platform values (multiple values allowed). Supported for react.

filter[build_number]string[]

Filter by build number values (multiple values allowed). Supported for react.

filter[bundle_name]string[]

Filter by bundle name values (multiple values allowed). Supported for react.

filter[arch]string[]

Filter by architecture values (multiple values allowed). Supported for flutter, elf, and ndk.

filter[symbol_source]string[]

Filter by symbol source values (multiple values allowed). Supported for elf.

filter[origin]string[]

Filter by origin values (multiple values allowed). Supported for elf.

filter[origin_version]string[]

Filter by origin version values (multiple values allowed). Supported for elf.

filter[filename]string

Filter by filename (single value). Supported for js, elf, and ndk.

filter[debug_id]string

Filter by debug ID (single value). Supported for react.

filter[gnu_build_id]string

Filter by GNU build ID (single value). Supported for elf.

filter[go_build_id]string

Filter by Go build ID (single value). Supported for elf.

filter[file_hash]string

Filter by file hash (single value). Supported for elf.

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "absolute_path": "/js/bundle.min.js",
        "blob_storage_sourcemap_path": "org123/1.0.0/bundle.min.js.map",
        "build_id": "abc123",
        "created_at": "2024-01-01T00:00:00Z",
        "domain": "example.com",
        "file_name": "bundle.min.js",
        "mapkind": "js",
        "service": "my-web-service",
        "size": 1024,
        "variant": "release",
        "version": "1.0.0",
        "version_code": "100"
      },
      "id": "5",
      "type": "sourcemaps"
    }
  ]
}