1. Data & IP
Anzenna Public API
  • How To Use the Anzenna Public API
  • AI Governance
    • Query all Shadow AI instances
      POST
    • Get a Shadow AI instance by id
      GET
    • Query all AI interactions
      POST
    • Get an AI interaction by id
      GET
    • List MCP servers
      POST
    • Get an MCP server
      GET
    • Query MCP server installations
      POST
  • Investigation
    • Query all investigations
    • Get an investigation by id
    • Start an investigation
    • Dismiss an investigation
    • Get detection investigation prompts
    • Get global investigation prompts
    • Get user investigation prompts
    • Query all risk registers
    • Query all risk register catalog entries
  • Identity
    • List accounts
    • Get an account by id
    • List login events
    • Get a login event by ID
    • Query all mfa statuses
    • Get an MFA status by id
    • Query all OAuth applications
    • Get an OAuth application by id
    • Query all OAuth application instances
    • Query all password reuse instances
  • Advanced
    • Execute an advanced query
    • List security events
    • Query raw events
    • Receive a webhook event
  • Detection
    • Query all allowlists
    • Create a new allowlist
    • Delete an allowlist
    • Update an allowlist
    • Get an anomaly by ID
    • Get key finding detections
    • Get detection details
    • List users associated with a given detection
    • Execute a remediation
  • Browser
    • Query all browser applications
    • Get a browser application by id
    • List browser application instances
    • List browser history entries
    • Query all remote machines
    • Get a remote machine by id
    • Query all web host resources
    • Get a web host resource by id
  • Data & IP
    • Query database exfiltration events
      POST
    • List file delete events
      POST
    • List file movement activities
      POST
    • Get file movement activity by id
      GET
    • List files used with data exfiltration.
      POST
    • Get a specific data exfiltration file
      GET
    • List git events
      POST
    • Get a specific git event by id
      GET
    • List git repositories
      POST
    • Get a specific git repository
      GET
    • List file sharing instances
      POST
    • Query database share grants
      POST
    • Query database share user additions
      POST
    • List documents
      POST
    • Get document by id
      GET
    • List DLP policies
      POST
    • Get a DLP policy by id
      GET
    • List DLP policy detectors
      POST
    • Query all DLP alerts
      POST
    • Get a DLP alert by id
      GET
    • Delete a DLP policy
      DELETE
    • Update a DLP policy
      PUT
    • Create a DLP policy
      POST
  • Device
    • List devices
    • Get a device
    • List device applications
    • Get a device application
    • Query device application instances.
    • List device infections
    • Get a device infection
    • List device policies
    • Get a device policy
    • List USB device connection events
    • Get a USB connection event
    • List IDE applications
    • Get an IDE application
    • Query IDE application instances.
  • Email
    • Query all outbound email events
    • Get an outbound email event by id
    • Query all phishing interactions
  • Company
    • List groups
    • Query all people
    • Get departure analysis for a person
    • Get a person by id
    • Add a category to multiple people
    • Remove a category from multiple people
    • Get company risk trends
    • Get number of high risk organizations
  • SaaS
    • Query all Shadow IT instances
  • Outreach
    • List training campaigns
    • Create a training campaign
  • API Key
    • Get API key information
  1. Data & IP

Update a DLP policy

PUT
/dlp-policies/{id}
Replace a DLP policy's name, threshold, rules and enforcement. The policy is
validated exactly like an edit in the portal's policy builder and recorded in
its history. Its description, group and test cases are kept, and so is its
on/off state unless enabled is sent.

Request

Authorization
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
The saved policy
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/dlp-policies/' \
--header 'Content-Type: application/json' \
--data '{
    "enabled": true,
    "enforcement": [
        {
            "actor": {
                "company_in": [
                    "string"
                ],
                "department_in": [
                    "string"
                ],
                "job_title_in": [
                    "string"
                ],
                "organization_lead_in": [
                    "string"
                ],
                "status_in": [
                    "automation"
                ],
                "user_in": [
                    "string"
                ],
                "watchlist_label_in": [
                    "string"
                ]
            },
            "channel": [
                "unspecified"
            ],
            "destination": {
                "account": "any",
                "category_in": [
                    "AI Tools",
                    "Personal Cloud Storage"
                ],
                "device_serial_in": [
                    "string"
                ],
                "device_vendor_id_in": [
                    "0781"
                ],
                "host_in": [
                    "openai.com"
                ],
                "host_matches": [
                    "string"
                ],
                "printer_in": [
                    "string"
                ]
            },
            "destination_category": [
                "string"
            ],
            "require_justification": true,
            "verdict": "block"
        }
    ],
    "name": "Customer PII protection",
    "rules": [
        {
            "condition": {
                "actor": {
                    "company_in": [
                        "string"
                    ],
                    "department_in": [
                        "string"
                    ],
                    "job_title_in": [
                        "string"
                    ],
                    "organization_lead_in": [
                        "string"
                    ],
                    "status_in": [
                        "automation"
                    ],
                    "user_in": [
                        "string"
                    ],
                    "watchlist_label_in": [
                        "string"
                    ]
                },
                "category": {
                    "detector_key": "financials_nonpublic",
                    "score_gte": 0
                },
                "composite": {
                    "conditions": [
                        {
                            "property1": "string",
                            "property2": "string"
                        }
                    ],
                    "operator": "and"
                },
                "destination": {
                    "account": "any",
                    "category_in": [
                        "AI Tools",
                        "Personal Cloud Storage"
                    ],
                    "device_serial_in": [
                        "string"
                    ],
                    "device_vendor_id_in": [
                        "0781"
                    ],
                    "host_in": [
                        "openai.com"
                    ],
                    "host_matches": [
                        "string"
                    ],
                    "printer_in": [
                        "string"
                    ]
                },
                "document": {
                    "file_type_in": [
                        "xlsx",
                        "csv"
                    ],
                    "text_length_gte": 0
                },
                "entity": {
                    "confidence_gte": 0,
                    "count_gte": 0,
                    "count_lte": 0,
                    "detector_key": "PII_SSN",
                    "occurrence": {
                        "basis_in": [
                            "checksum_only"
                        ],
                        "card": {
                            "known_network_only": true,
                            "separators_in": [
                                "bare"
                            ]
                        }
                    }
                },
                "origin": {
                    "corporate_source": true
                }
            },
            "name": "bulk customer PII export",
            "weight": 0.8
        }
    ],
    "threshold": 0.6
}'
Response Response Example
{
    "policy": {
        "created": "2019-08-24T14:15:22.123Z",
        "enforcement": [
            {
                "actor": {
                    "company_in": [
                        "string"
                    ],
                    "department_in": [
                        "string"
                    ],
                    "job_title_in": [
                        "string"
                    ],
                    "organization_lead_in": [
                        "string"
                    ],
                    "status_in": [
                        "automation"
                    ],
                    "user_in": [
                        "string"
                    ],
                    "watchlist_label_in": [
                        "string"
                    ]
                },
                "channel": [
                    "unspecified"
                ],
                "destination": {
                    "account": "any",
                    "category_in": [
                        "AI Tools",
                        "Personal Cloud Storage"
                    ],
                    "device_serial_in": [
                        "string"
                    ],
                    "device_vendor_id_in": [
                        "0781"
                    ],
                    "host_in": [
                        "openai.com"
                    ],
                    "host_matches": [
                        "string"
                    ],
                    "printer_in": [
                        "string"
                    ]
                },
                "destination_category": [
                    "string"
                ],
                "require_justification": true,
                "verdict": "block"
            }
        ],
        "id": "8CA67511-744C-4D74-B26E-7281CF88712F",
        "name": "Customer PII protection",
        "rules": [
            {
                "condition": {
                    "actor": {
                        "company_in": [
                            "string"
                        ],
                        "department_in": [
                            "string"
                        ],
                        "job_title_in": [
                            "string"
                        ],
                        "organization_lead_in": [
                            "string"
                        ],
                        "status_in": [
                            "automation"
                        ],
                        "user_in": [
                            "string"
                        ],
                        "watchlist_label_in": [
                            "string"
                        ]
                    },
                    "category": {
                        "detector_key": "financials_nonpublic",
                        "score_gte": 0
                    },
                    "composite": {
                        "conditions": [
                            {
                                "property1": "string",
                                "property2": "string"
                            }
                        ],
                        "operator": "and"
                    },
                    "destination": {
                        "account": "any",
                        "category_in": [
                            "AI Tools",
                            "Personal Cloud Storage"
                        ],
                        "device_serial_in": [
                            "string"
                        ],
                        "device_vendor_id_in": [
                            "0781"
                        ],
                        "host_in": [
                            "openai.com"
                        ],
                        "host_matches": [
                            "string"
                        ],
                        "printer_in": [
                            "string"
                        ]
                    },
                    "document": {
                        "file_type_in": [
                            "xlsx",
                            "csv"
                        ],
                        "text_length_gte": 0
                    },
                    "entity": {
                        "confidence_gte": 0,
                        "count_gte": 0,
                        "count_lte": 0,
                        "detector_key": "PII_SSN",
                        "occurrence": {
                            "basis_in": [
                                "checksum_only"
                            ],
                            "card": {
                                "known_network_only": true,
                                "separators_in": [
                                    "bare"
                                ]
                            }
                        }
                    },
                    "origin": {
                        "corporate_source": true
                    }
                },
                "name": "bulk customer PII export",
                "weight": 0.8
            }
        ],
        "threshold": 0.6,
        "updated": "2019-08-24T14:15:22.123Z",
        "version": "1"
    },
    "warnings": [
        "string"
    ]
}
Modified at 2026-11-02 15:06:45
Previous
Delete a DLP policy
Next
Create a DLP policy
Built with