โ† API reference
Mutation / admin

iacUpdateStackRules

Change a stack's rules. Every change is recorded. Requires stack administration; invalid values are refused with INVALID_RULES.

Arguments

stackIdIaCStackID!

Stack whose rules change.

requiredApprovalsInt

Approvals required, 0 to 10; omitted leaves it unchanged.

ownerTeamApprovalsOnlyBoolean

Count only owning-team approvals; needs an owning team. Omitted leaves it unchanged.

dismissApprovalsOnRevisionBoolean

Dismiss approvals when a revision changes content; omitted leaves it unchanged.

allowAdminBypassBoolean

Let stack admins apply without meeting the rules; omitted leaves it unchanged.

expectedUpdatedAtString

The updatedAt last read; omit when no rules were set. A different current value is refused with RULES_CHANGED.

Returns IaCStackRules!

Scalar fields at a glance

requiredApprovalsInt!
ownerTeamApprovalsOnlyBoolean!
dismissApprovalsOnRevisionBoolean!
allowAdminBypassBoolean!
updatedAtString
โ†— View the complete IaCStackRules type

Explore in a view

Administration and IAM
View exact SDL
"""
Change a stack's rules. Every change is recorded. Requires stack administration; invalid values are refused with INVALID_RULES.
"""
iacUpdateStackRules(
  """Stack whose rules change."""
  stackId: IaCStackID!
  """Approvals required, 0 to 10; omitted leaves it unchanged."""
  requiredApprovals: Int
  """
  Count only owning-team approvals; needs an owning team. Omitted leaves it unchanged.
  """
  ownerTeamApprovalsOnly: Boolean
  """
  Dismiss approvals when a revision changes content; omitted leaves it unchanged.
  """
  dismissApprovalsOnRevision: Boolean
  """
  Let stack admins apply without meeting the rules; omitted leaves it unchanged.
  """
  allowAdminBypass: Boolean
  """
  The updatedAt last read; omit when no rules were set. A different current value is refused with RULES_CHANGED.
  """
  expectedUpdatedAt: String
): IaCStackRules! @topic(names: ["admin"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.