Skip to main content

setEnvironmentDeletionProtection

Operator only (is_operator). Toggles deletion protection on an environment (when enabled, purgeEnvironment is blocked) and writes an audit entry. Returns true on success.

setEnvironmentDeletionProtection(
environmentId: String!
enabled: Boolean!
): Boolean!

Arguments

setEnvironmentDeletionProtection.environmentId ● String! non-null scalar

Environment UUID to protect/unprotect.

setEnvironmentDeletionProtection.enabled ● Boolean! non-null scalar

True to enable deletion protection, false to disable.

Type

Boolean scalar

The Boolean scalar type represents true or false.