curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/scanners/{kind} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"scanners": []
}'import requests
url = "https://app.trustivan.com/api/v1/settings/scanners/{kind}"
payload = { "scanners": [] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({scanners: []})
};
fetch('https://app.trustivan.com/api/v1/settings/scanners/{kind}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/scanners/{kind}"
payload := strings.NewReader("{\n \"scanners\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Set the scanner selection for one target kind
Keyed by target kind rather than globally, because the right default genuinely differs: a repository scan wants secret detection on, since secrets live in git and a repository is where they leak; a container image scan does not.
A scanner the deployment’s engine cannot run is refused rather than stored. Saving detection that will never happen produces an empty result indistinguishable from “nothing found”.
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/scanners/{kind} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"scanners": []
}'import requests
url = "https://app.trustivan.com/api/v1/settings/scanners/{kind}"
payload = { "scanners": [] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({scanners: []})
};
fetch('https://app.trustivan.com/api/v1/settings/scanners/{kind}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/scanners/{kind}"
payload := strings.NewReader("{\n \"scanners\": []\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Path Parameters
Body
sast, dast and quality are accepted only where the deployment can run it. Every value
here is validated against the ENGINE's declared capability rather
than against this list, so a deployment with no SAST_RULES and no
semgrep binary refuses sast with 400, because storing a
scanner that can never run would configure detection that silently
never happens.
At least one is required. A selection that disables every scanner would produce a scan that looks successful and detects nothing, which is the most dangerous output this product can produce; delete the setting to return to the deployment default instead.
1vulnerability, secret, misconfiguration, license, sbom, sast, dast, quality Response
The stored setting.
The response is of type object.