Revoke code finding disposition (browser session)
import requests
url = "https://platform.ankra.app/org/security/code-dispositions/{disposition_id}/revoke"
payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://platform.ankra.app/org/security/code-dispositions/{disposition_id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/security/code-dispositions/{disposition_id}/revoke \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"disposition": "false_positive",
"expires_at": "2023-11-07T05:31:56Z",
"finding_severity": "HIGH",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "<string>",
"reason": "<string>",
"repository": "<string>",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_at": "2023-11-07T05:31:56Z",
"revoked_by": "<string>",
"revoked_reason": "<string>",
"rule_id": "<string>",
"scope": "repository_code",
"status": "active",
"tool": "semgrep"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
Revoke code finding disposition (browser session)
Revokes a code finding disposition with a required reason; the image gate blocks on the finding again from its next run and the record is kept for audit. Requires security.manage; returns 409 when it is already revoked.
POST
/
org
/
security
/
code-dispositions
/
{disposition_id}
/
revoke
Revoke code finding disposition (browser session)
import requests
url = "https://platform.ankra.app/org/security/code-dispositions/{disposition_id}/revoke"
payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://platform.ankra.app/org/security/code-dispositions/{disposition_id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/security/code-dispositions/{disposition_id}/revoke \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"disposition": "false_positive",
"expires_at": "2023-11-07T05:31:56Z",
"finding_severity": "HIGH",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "<string>",
"reason": "<string>",
"repository": "<string>",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_at": "2023-11-07T05:31:56Z",
"revoked_by": "<string>",
"revoked_reason": "<string>",
"rule_id": "<string>",
"scope": "repository_code",
"status": "active",
"tool": "semgrep"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Required string length:
1 - 2000Response
Successful response
One repository code finding disposition: a member's audited decision that a Semgrep or Checkov rule firing in one file of a pipeline repository is a false positive or an accepted risk. While active, the image gate does not block on it.
Available options:
false_positive, accepted_risk Available options:
HIGH, MEDIUM, LOW, UNKNOWN owner/name of the pipeline repository.
Available options:
repository_code Available options:
active, expired, revoked Available options:
semgrep, checkov