Allowlist
Modify Allowlist
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
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>"
}