Create sourcemap
This endpoint enables the creation of private sourcemaps.
This endpoint accepts both organization-level and app-level Push API keys, not a REST API (V1) personal API token. An app-level Push API key identifies the app directly. If you supply an environment with that key, use the app’s existing environment.
Matching sourcemaps
We will match the values for thename[] fields against the full backtrace URL, without the line number, column number, or URL fragment. For example, the following backtrace line:
Shell
name: https://test.local/main.abc123.js.
If you set matchBacktracePaths, use the rewritten path as the name. See AppSignal for JavaScript with React Native and Expo for an example.
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, except app_name and environment when you use an app-level Push API key.
Responses
- The API will return a
201HTTP status code if successful. The sourcemap is queued for processing, and the response body is empty. - The API will return a
400HTTP status code with a JSON response when a validation error has occurred, such as a missingname,revision, orfile, or a sourcemap that is empty or not valid JSON. - The API will return a
401HTTP status code if the app details could not be validated, such as an environment that another app already uses. - The API will return a
404HTTP status code if the Push API key does not belong to an active app or organization.