PUT
/
whitelist
/
{whitelist_id}
curl --request PUT \
  --url https://example.com/api/whitelist/{whitelist_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "SECRET",
  "name": "<string>",
  "active": true,
  "global_": true,
  "repos": [
    123
  ],
  "vcs": [
    123
  ],
  "comment": "<string>"
}'
{
  "id": 123,
  "name": "<string>",
  "created_by": 123,
  "updated_by": 123,
  "secrets_updated": 123,
  "vulnerabilities_updated": 123,
  "created_on": "2023-11-07T05:31:56Z",
  "comments": [
    123
  ],
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

whitelist_id
integer
required

Body

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

Response

200
application/json
Successful Response
id
integer
required
created_by
integer
required
updated_by
integer
required
created_on
string
required
name
string | null
default:
secrets_updated
integer | null
vulnerabilities_updated
integer | null
comments
integer[] | null
type
string | null
default: