curl --request PUT \
--url https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app \
--header 'Content-Type: application/json' \
--cookie apsio_session= \
--data '
{
"lists": [
{
"in_app": [
"com.acme.shop"
],
"third_party": [
"com.acme.vendor"
]
}
]
}
'import requests
url = "https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app"
payload = { "lists": [
{
"in_app": ["com.acme.shop"],
"third_party": ["com.acme.vendor"]
}
] }
headers = {
"cookie": "apsio_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'apsio_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({lists: [{in_app: ['com.acme.shop'], third_party: ['com.acme.vendor']}]})
};
fetch('https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'lists' => [
[
'in_app' => [
'com.acme.shop'
],
'third_party' => [
'com.acme.vendor'
]
]
]
]),
CURLOPT_COOKIE => "apsio_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app"
payload := strings.NewReader("{\n \"lists\": [\n {\n \"in_app\": [\n \"com.acme.shop\"\n ],\n \"third_party\": [\n \"com.acme.vendor\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "apsio_session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app")
.header("cookie", "apsio_session=")
.header("Content-Type", "application/json")
.body("{\n \"lists\": [\n {\n \"in_app\": [\n \"com.acme.shop\"\n ],\n \"third_party\": [\n \"com.acme.vendor\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'apsio_session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"lists\": [\n {\n \"in_app\": [\n \"com.acme.shop\"\n ],\n \"third_party\": [\n \"com.acme.vendor\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"lists": [
{
"kind": "apple",
"in_app": [
"<string>"
],
"third_party": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Set the project's in-app lists
Per kind of frame, the entries counted as the app’s own code (in_app) and those never blamed (third_party): apple, an image name, exactly; jvm, a package prefix at a dot boundary (com.acme.shop); native, a shared library’s file name, exactly (libshop.so); javascript, a package (@acme/ui, a node_modules/<package>/ segment) or a source path prefix ending in /. The third-party list wins over everything, then the in-app list, then the SDK’s flag and Apsio’s own rules. A change applies to occurrences processed after it, within a minute; existing issues keep their frames and group. Sets the lists of the kinds given; the others stay as they are. At most 50 entries a list, 200 characters each, an entry in one list of its kind only; entries are trimmed and duplicates dropped. Owners and admins; audited with each changed kind’s lists before and after.
curl --request PUT \
--url https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app \
--header 'Content-Type: application/json' \
--cookie apsio_session= \
--data '
{
"lists": [
{
"in_app": [
"com.acme.shop"
],
"third_party": [
"com.acme.vendor"
]
}
]
}
'import requests
url = "https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app"
payload = { "lists": [
{
"in_app": ["com.acme.shop"],
"third_party": ["com.acme.vendor"]
}
] }
headers = {
"cookie": "apsio_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'apsio_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({lists: [{in_app: ['com.acme.shop'], third_party: ['com.acme.vendor']}]})
};
fetch('https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'lists' => [
[
'in_app' => [
'com.acme.shop'
],
'third_party' => [
'com.acme.vendor'
]
]
]
]),
CURLOPT_COOKIE => "apsio_session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app"
payload := strings.NewReader("{\n \"lists\": [\n {\n \"in_app\": [\n \"com.acme.shop\"\n ],\n \"third_party\": [\n \"com.acme.vendor\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "apsio_session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app")
.header("cookie", "apsio_session=")
.header("Content-Type", "application/json")
.body("{\n \"lists\": [\n {\n \"in_app\": [\n \"com.acme.shop\"\n ],\n \"third_party\": [\n \"com.acme.vendor\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/orgs/{orgId}/projects/{projectId}/in-app")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'apsio_session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"lists\": [\n {\n \"in_app\": [\n \"com.acme.shop\"\n ],\n \"third_party\": [\n \"com.acme.vendor\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"lists": [
{
"kind": "apple",
"in_app": [
"<string>"
],
"third_party": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Authorizations
The console session, set by /v1/auth/callback (__Host-apsio_session when host-only).
Path Parameters
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"0192f3a4-0000-7000-8000-00000000a001"
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"0192f3a4-0000-7000-8000-00000000a001"
Body
1 - 4 elementsShow child attributes
Show child attributes
Response
The lists, one per kind
Show child attributes
Show child attributes