Errors

Upload a source map

Stores one source map for a release, replacing the one for the same file. Maps hold the site's source, so they are private: they are used only to resolve stack frames and are never returned. A map is removed after the site's retention period unless errors of its release are read; a release holds at most 300 maps and a site 1,500. The hootlens sourcemaps upload command uses this route.

Required token scopes are listed in x-hootlens-scopes. A signed-in person needs the matching permission on the site instead (the viewer and editor roles are presets of the permissions).

put/v1/projects/{projectId}/sourcemaps

Request

  • Base URL: https://hootlens-api-368877148687.us-east1.run.app
  • URL: https://hootlens-api-368877148687.us-east1.run.app/v1/projects/{projectId}/sourcemaps
  • Auth: HTTP bearer

Path parameters

projectIdstring required

An identifier: 1 to 80 letters, digits, underscores or hyphens.

The project ID. Project IDs are public identifiers, not secrets.

Query parameters

releasestring required

The release the map belongs to: the release the site reports (the data-release attribute of the tag or the release option), which errors carry as their release.

filestring required

The generated file the map describes, relative to the built directory with forward slashes, such as assets/app-3f2a.js.

Response

The map was stored.

releasestring required
filestring required
bytesinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.