Ignore an exception issue
Ignore one issue for this client so it stops alerting. The daily exceptions alert never raises it again, and its open exceptions alert is resolved now (resolved_by: user, no notification). Its errors are still recorded and still listed, with ignored: true. Use it for errors that are not the site's fault, such as an in-app browser's own injected script.
Idempotent: a repeated call keeps the original ignored_at and ignored_by. An omitted note keeps the stored one, "note": null clears it. Needs an agency key (ak_) with a bound location, or an mcp_ key with exceptions:write; location secret keys (sk_) are read-only and get 403.
curl -X PUT "https://mythic-analytics.gulp.workers.dev/client/v1/data/exceptions/issues/example_string/ignore?location_id=example_string" \
-H "Content-Type: application/json" \
-H "X-Location-Id: example_string" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"note": "In-app browser script (iabjs://), not the site."
}'
import requests
import json
url = "https://mythic-analytics.gulp.workers.dev/client/v1/data/exceptions/issues/example_string/ignore?location_id=example_string"
headers = {
"Content-Type": "application/json",
"X-Location-Id": "example_string",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"note": "In-app browser script (iabjs://), not the site."
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://mythic-analytics.gulp.workers.dev/client/v1/data/exceptions/issues/example_string/ignore?location_id=example_string", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"X-Location-Id": "example_string",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"note": "In-app browser script (iabjs://), not the site."
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"note": "In-app browser script (iabjs://), not the site."
}`)
req, err := http.NewRequest("PUT", "https://mythic-analytics.gulp.workers.dev/client/v1/data/exceptions/issues/example_string/ignore?location_id=example_string", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Location-Id", "example_string")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mythic-analytics.gulp.workers.dev/client/v1/data/exceptions/issues/example_string/ignore?location_id=example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['X-Location-Id'] = 'example_string'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"note": "In-app browser script (iabjs://), not the site."
}'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"location_id": "example_string",
"issue_id": "v1:2cb3c285a82cd4ca56c51c666a7105df",
"ignored": true,
"ignored_at": "2024-12-25T10:00:00Z",
"ignored_by": "example_string",
"note": "example_string",
"alerts_resolved": 1
}
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
{
"error": "Error",
"message": "An upstream data service failed",
"code": 502
}
/exceptions/issues/{id}/ignoreTarget server for requests. Edit to use your own host.
Agency key (ak_) or location secret key (sk_) as a bearer token. Format: Bearer ak_... or Bearer sk_.... Scoped keys (mcp_) are accepted too and need the read scope of the family the route belongs to (people, events, sessions, replays, exceptions, heatmaps or bigquery_export). See Using an mcp_ key over HTTP.
ak_) or location secret key (sk_) as a bearer token. Format: Bearer ak_... or Bearer sk_.... Scoped keys (mcp_) are accepted too and need the read scope of the family the route belongs to (people, events, sessions, replays, exceptions, heatmaps or bigquery_export). See Using an mcp_ key over HTTP.
The stable issue_id from the issue list, e.g. v1: + 32 lowercase hex characters. URL-encode the colon or send it as is.
Alternative to the X-Location-Id header for agency (ak_) keys. Ignored for secret (sk_) keys.
The media type of the request body
Location to scope the request to. Required for agency (ak_) keys on the event routes. Ignored for secret (sk_) keys, which resolve their own location, and not used by /export.
Why the issue is ignored.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Agency key (ak_) or location secret key (sk_) as a bearer token. Format: Bearer ak_... or Bearer sk_.... Scoped keys (mcp_) are accepted too and need the read scope of the family the route belongs to (people, events, sessions, replays, exceptions, heatmaps or bigquery_export). See Using an mcp_ key over HTTP.
Path Parameters
The stable issue_id from the issue list, e.g. v1: + 32 lowercase hex characters. URL-encode the colon or send it as is.
Query Parameters
Alternative to the X-Location-Id header for agency (ak_) keys. Ignored for secret (sk_) keys.
Headers
Location to scope the request to. Required for agency (ak_) keys on the event routes. Ignored for secret (sk_) keys, which resolve their own location, and not used by /export.