Skip to main content
PUT
Apply a detection policy

Authorizations

Authorization
string
header
required

Get access to data with your API token. Example header:

Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628

The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.

Path Parameters

deploymentId
integer<int64>
required

The unique numerical identifier for the deployment.

Example:

1234

product
string
required

The product the bundle applies to. One of: code, secrets.

Example:

"code"

Body

application/json
bundle
Detection Policy Bundle · object
required

The bundle to apply. It replaces the current state for the product: exceptions absent from it are deleted.

Response

200 - application/json

OK

bundle
Detection Policy Bundle · object

The detection policy bundle after the apply.

state_version
string

The new state_version of the bundle after the apply.

Example:

"e5f6a7b8"