Add/remove assets from policy

This operation enables you to add assets to and/or remove assets from a custom policy. Both of these procedures can be performed in a single request.

NOTE: Sites are the only asset type supported for this operation.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

Custom policy id.

Body Params

Holds the information to assign or remove assets from vuln custom policy.

The list of integer site IDs to attach to the policy. Any site IDs already attached to the policy that are not included in this list will be removed from the policy. EXAMPLE: If sites 2 & 3 are already attached and we use this as content: ''{sites:[1,2]}'', site 2 will remain attached, site 3 will be added, and site 1 will be removed from the policy.

sites
array of numbers
sites
Responses

400

BadRequestResponse indicates a request with invalid parameters.

401

UnauthorizedResponse signals an unauthorized API access.

403

ForbiddenResponse signals a request for a resource that does not exist or is not authorized.

500

GenericError generic error.

Language
LoadingLoading…
Response
Choose an example:
application/json