Skip to content

Delete an organization preset

DELETE/api/public/v1/policy-presets/{key} beta

The preset and its rules. A draft already created from it is unaffected. 409 PRESET_READ_ONLY for a built-in preset.

Terminal window
curl --fail-with-body -X DELETE 'https://app.openlatch.ai/api/public/v1/policy-presets/<preset_key>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorAllowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: presets:write

ParameterTypeDescription
keystringRequired.
ParameterTypeDescription
Idempotency-Keystring or nullOptional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.