Skip to content
GitmoapAPIBeta
Schema

ApprovalPolicy

A group's or repository's approval policy.

Shape

  • author_can_approvebooleanWhether a merge request's author may approve it.
  • committers_can_approvebooleanWhether someone who authored or committed a commit in it may approve it.
  • defined_atAccessScope
  • enforcementRuleEnforcementdefaultenforcedWhether the scopes beneath may replace a rule, or only strengthen it.
  • last_pusher_can_approvebooleanWhether whoever pushed its current head may approve it.
  • reset_on_pushbooleanWhether an approval stops counting when new commits are pushed.
  • updated_atstring · date-time

Example

Synthesized example
{
"author_can_approve": false,
"committers_can_approve": false,
"defined_at": {
"full_path": "acme/payments-api",
"id": "id-bafa",
"type": "group"
},
"enforcement": "default",
"last_pusher_can_approve": false,
"reset_on_push": false,
"updated_at": "2026-10-11T16:59:54Z"
}

Graph

Contains

Used by

Sent by 0 operations

No operation takes it as a request body.

Returned by 0 operations

No operation returns it directly.