SourceMaps

Create or update a translation between a minified JavaScript path to the minified JavaScript and source map files.

Required permission: sourcemaps_write

post/v3/sourcemaps/{logId}

Request

Path parameters

logIdstring required

The ID of the log which should contain the minified JavaScript and source map.

Request body multipart/form-data

Pathstring uri required

An URL to the online minified JavaScript file. The URL can be absolute or relative but will always be converted to a relative path (no protocol, domain, and query parameters). elmah.io uses this path to lookup any lines in a JS stack trace that will need de-minification.

SourceMapstring binary required

The source map file. Only files with an extension of .map and content type of application/json will be accepted.

MinifiedJavaScriptstring binary required

The minified JavaScript file. Only files with an extension of .js and content type of text/javascript will be accepted.

Response

Source map was successfully created.

Changes

No recorded changes to this operation across all 2 revisions of this API.