API reference / Tests and incidents
Upload a source map
Gives Troopy the source map of one built file of a release. Then the errors of that release show the app's own files, lines and functions, and two builds of one problem stay one incident. name: the built file as its errors name it, or its path, like /assets/index-3f2a9c1b.js. A name without a folder matches that file in any folder. A map is 25 MB at most, and a new map of the same file replaces the old one. Troopy keeps the maps of the latest 10 releases. From the CLI, pass --content @./dist/assets/index-3f2a9c1b.js.map.
/api/v1/incident-apps/{id}/sourcemapsOther ways to call it
troopy incidents sourcemaps uploadIdempotency-Key header. A retry with the same key gets the first answer back, and the operation runs one time.Path parameters
id*stringA 24-character id
Body
application/jsonrelease*stringThe release that the SDK of the app names
At least 1 characters · At most 200 characters
name*stringThe built file, like /assets/index-3f2a9c1b.js or https://app.example.com/assets/index-3f2a9c1b.js
At least 1 characters · At most 500 characters
content*stringThe source map, base64-encoded
At most 35000000 characters · base64
Response
201 · application/jsondata*object5 properties
release*stringpath*stringThe built file, without the site
debugId*string | nullThe debug id that a bundler wrote into the map
size*integeruploadedAt*stringISO 8601 date and time