Skip to main content
POST
/
whitelist
Create Allowlist
curl --request POST \
  --url https://example.com/api/whitelist/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "SECRET",
  "name": "<string>",
  "vcs": [
    123
  ],
  "active": true,
  "global_": false,
  "repos": [
    123
  ],
  "comment": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
type
enum<string>
required
Available options:
SECRET,
VULNERABILITY
name
string
required
vcs
integer[]
required
active
boolean
default:true
global_
boolean
default:false
repos
integer[] | null
comment
string

Response

Successful Response