Update asset policy
Changed onUpdate an existing asset policy. Use append mode to merge new values with existing ones (e.g., add alerting configs or labels without removing current ones). Use replace mode to completely overwrite the policy configuration.
patch/v1/asset/policy/{policy_id}
Request
- Base URLhttps://api.projectdiscovery.io
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
update_type'append' | 'replace'
Update strategy. append (default) merges new values with existing ones. replace overwrites the entire policy — all required fields for the policy type must be provided.
Request body
Response
OK
Changes
- info
added the new optional request property
/
- info
- info
endpoint added
- info