v1

latestOpenAPI 3.1.02026-07-26289714404.6 KB
Projects

Update Policy

put/policies

Request body

projectIdstring required
numberOfEnvironmentsnumber nullable
numberOfEnvironmentsTotalnumber nullable
maxTtlstring nullable

The maximum allowed TTL. Must be 6-h, 12-h, 1-d, 3-d, 1-w, 2-w, 1-M, inherit or explicit null which means infinite

defaultTtlstring nullable

The default TTL set when creating environments. Must be 6-h, 12-h, 1-d, 3-d, 1-w, 2-w, 1-M, inherit or explicit null which means infinite

requiresApprovalDefaultboolean
includeCostEstimationboolean
skipApplyWhenPlanIsEmptyboolean
disableDestroyEnvironmentsboolean
forceCheckoutOnTtlDestroyboolean
skipRedundantDeploymentsboolean
continuousDeploymentDefaultboolean
runPullRequestPlanDefaultboolean
vcsPrCommentsEnabledDefaultboolean
forceRemoteBackendboolean
driftDetectionEnabledboolean
driftDetectionCronstring
autoDriftRemediation'DISABLED' | 'CODE_TO_CLOUD' | 'CLOUD_TO_CODE' | 'SMART_REMEDIATION' | 'DISABLED' | 'CODE_TO_CLOUD' | 'CLOUD_TO_CODE' | 'SMART_REMEDIATION'
outputsAsInputsEnabledboolean

Response

idstring required
updatedBystring required
projectIdstring required
organizationIdstring
numberOfEnvironmentsnumber nullable required
numberOfEnvironmentsTotalnumber nullable required
maxTtlstring nullable required
defaultTtlstring nullable required
requiresApprovalDefaultboolean required
includeCostEstimationboolean required
skipApplyWhenPlanIsEmptyboolean required
disableDestroyEnvironmentsboolean required
forceCheckoutOnTtlDestroyboolean required
skipRedundantDeploymentsboolean required
continuousDeploymentDefaultboolean required
runPullRequestPlanDefaultboolean required
vcsPrCommentsEnabledDefaultboolean required
forceRemoteBackendboolean required
driftDetectionEnabledboolean
driftDetectionCronstring
outputsAsInputsEnabledboolean required
autoDriftRemediation'DISABLED' | 'CODE_TO_CLOUD' | 'CLOUD_TO_CODE' | 'SMART_REMEDIATION' | 'DISABLED' | 'CODE_TO_CLOUD' | 'CLOUD_TO_CODE' | 'SMART_REMEDIATION'