Skip to content
GitmoapAPIBeta
Schema

UpdateApprovalRuleRequest

Change an approval rule. Send only what changes.

Shape

  • accept_fromAcceptFrompeople_signed_inpeoplepeople_and_service_accountspeople_and_agentsor nulloptionalWhich kinds of approval count toward a rule.
  • applies_to_branchesstring or nulloptionalnull makes the rule apply to every branch.
  • approversarray of ApproverRef or nulloptional
  • enforcementRuleEnforcementdefaultenforcedor nulloptionalWhether the scopes beneath may replace a rule, or only strengthen it.
  • nameApprovalRuleName (string) or nulloptional
  • requiredinteger · int32 or nulloptional0–∞

Example

Synthesized example
{
"accept_from": "people_signed_in",
"applies_to_branches": "applies-to-branches-b4c7",
"approvers": [
{
"anyone": {}
},
{
"anyone": {}
}
],
"enforcement": "default",
"name": "payments-api",
"required": 42
}

Graph

Used inside

No schema contains this one.

Contains

Used by

Returned by 0 operations

No operation returns it directly.