URL parameters
The ID of the application to update.
Headers
Bearer $TOKEN
application/json
Body parameters
New application name. Must be unique within your team.
New error data retention period in days.
Web events data retention period in days. Read more about data retention.
Session replays data retention period in days.
Set to true to pause error ingestion, false to resume.
The full name of a GitHub repository (e.g., owner/repo) to connect to the application. The repository must be connected to your team via the GitHub integration first. To disconnect a repository, provide an empty string or null.
The absolute path to the root of the stack trace on your server (e.g., /usr/src/app/). This is used to resolve source code paths for AI-assisted debugging.
The relative path from your project's root to the source code being deployed (e.g., apps/backend/). This is used to resolve source code paths for AI-assisted debugging.
The VRL code that groups incoming exceptions into errors. Send null to reset to the default grouping for the application's platform, or an empty string to remove the grouping program entirely. Read more about exception grouping.
The VRL code applied to session replays during ingestion. Send an empty string to remove the transformation.
The VRL code applied to web events like page views and web vitals during ingestion. Send null to reset to the default web events transformation, or an empty string to remove it.
The VRL code applied to logs during ingestion. Send an empty string to remove the transformation. Read more about VRL transformations.
The VRL code applied to traces (spans) during ingestion. Send an empty string to remove the transformation.
Rotates the key pair of the custom bucket the application already uses. Send only access_key_id and secret_access_key. We verify the new pair against the bucket first; if that fails, the whole request is rejected with a 422 and nothing is changed. A bucket shared by several applications is rotated for all of them. Send the new pair before deactivating the old one to rotate without downtime. A custom bucket can only be added when creating an application.
The baseline multiplier of spike protection, from 0 to 100, or null to turn spike protection off. Lower values start sampling sooner. Higher values allow bigger bursts before sampling starts. We recommend 10 as the default multiplier. Spike protection is off by default.
AI prompt used to fix this application's errors. Send null to use the default prompt.
JavaScript tag settings. Only the keys you send change.
Features the JavaScript tag collects.
Collect frontend errors. Defaults to true.
Record web vitals. Defaults to true.
Collect console.log calls. Defaults to true.
Record JavaScript heap memory, in Chrome only. Defaults to true.
Record website analytics. Defaults to true.
Capture the events of anonymous visitors automatically. Defaults to true.
Record session replays. Defaults to true.
Capture the events of identified users automatically. Defaults to true.
Collect the browser fingerprint. Defaults to true.
Sampling rates of the JavaScript tag.
Percentage of errors sent, 0 to 100. Defaults to 100.
Percentage of sessions recorded as session replays, 0 to 100. Defaults to 100.
Percentage of sessions that send web events, 0 to 100. Defaults to 100.
CSS selectors of elements left out of session replays and autocapture. Defaults to input, textarea, and select.
CSS selectors of elements whose text session replays mask. Defaults to an empty list.
Your other domains to share sessions with. Defaults to an empty list.
Continue sessions that arrive from your other domains. Defaults to true.
Also share sessions through forms that submit to your other domains. Defaults to false.
JavaScript code the tag runs when it loads. Send null to remove it.
Session timeout in minutes, 1 to 60. Defaults to 30.
Interval between event batches in seconds, at least 2. Defaults to 2.
Your own subdomain to serve the tag from, with a CNAME to proxy.betterstack.net. Send null to remove it.