Create sourcemap
This endpoint enables the creation of private sourcemaps.| Endpoint | /api/sourcemaps |
| Request method | POST |
| Content-Type | multipart/form-data |
| Requires authentication? | Yes (Push API key) |
| Response formats | JSON |
Matching sourcemaps
We will match the values for thename[] fields against the full backtrace URL. For example, the following backtrace line:
Shell
name: https://test.local/main.abc123.js.
You can add multiple name’s in one curl request:
Parameters
All parameters, except forfile can be sent either in the POST body or as GET parameters. All parameters are required.
| Parameter | Type | Description |
|---|---|---|
push_api_key | String | Your organization’s Push API key. |
app_name | String | Name of the application in AppSignal in which the sourcemap should be used. |
environment | String | Environment of the application in AppSignal in which the sourcemap should be used. |
revision | String | Deploy marker revision reference. |
name | Array of Strings | List of filenames that the sourcemap covers. This should be a full URL to the minified JavaScript file, as you see it in the backtrace, including any url params. |
file | File | Sourcemap to upload. |
Responses
- The API will return a
201HTTP status code if successful. - The API will return a
400HTTP status code with a JSON response when a validation error has occurred. - The API will return a
404HTTP status code if no app exists for the given app name, environment and Push API key combination.