APIInventory Rules
Delete an inventory rule
Removes a rule. Scripts it already justified keep their justification and history.
Requires the manager role on the website and the compliance plan feature.
DELETE
header
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
ruleId*stringThe inventory rule's id.
The inventory rule is deleted.
Example Request
curl -X DELETE 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/rules/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90'Example Response
Empty
Update an inventory rule PATCH
Changes a rule or turns it off with enabled: false. Only the fields you send are changed, and the inventory is refreshed afterwards.
Export the script inventory GET
Downloads the whole inventory as CSV, with the same filters as the list endpoint and no pagination. Suitable as evidence for an assessor.