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.
requiredApprovalsIntApprovals required, 0 to 10; omitted leaves it unchanged.
ownerTeamApprovalsOnlyBooleanCount only owning-team approvals; needs an owning team. Omitted leaves it unchanged.
dismissApprovalsOnRevisionBooleanDismiss approvals when a revision changes content; omitted leaves it unchanged.
allowAdminBypassBooleanLet stack admins apply without meeting the rules; omitted leaves it unchanged.
expectedUpdatedAtStringThe 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!updatedAtStringExplore in a view
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.