Create or update approval configuration for a project
Creates or updates the approval configuration for a project. The currently authenticated user must be an eligible approver.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Request Body
Section titled “ Request Body ”object
The amount of approvals required before an MR can be merged
Should the approval count be reset on a new push
Reset approvals from Code Owners if their files changed
Should MRs be able to override approvers and approval count
Should merge request authors be able to self approve merge requests; true means authors cannot self approve
Should committers be able to self approve merge requests
Should approvers authenticate via password before adding approval
Should approvers authenticate via password or SAML before adding approval
Example generated
{ "approvals_before_merge": 1, "reset_approvals_on_push": true, "selective_code_owner_removals": true, "disable_overriding_approvers_per_merge_request": true, "merge_requests_author_approval": true, "merge_requests_disable_committers_approval": true, "require_password_to_approve": true, "require_reauthentication_to_approve": true}Responses
Section titled “ Responses ”Created
object
object
object
object
object
object
object
object
CI artifacts size in bytes.
Container registry size in bytes.
Indicates whether the deduplicated container registry size for the namespace is an estimated value or not.
Dependency Proxy sizes in bytes.
LFS objects size in bytes.
Packages size in bytes.
CI pipeline artifacts size in bytes.
Git repository size in bytes.
Snippets size in bytes.
Total storage in bytes.
Uploads size in bytes.
Wiki size in bytes.
object
object
[Experimental] Indicates whether GitLab Duo Core features are enabled for the group
Example
{ "approvers": { "user": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" } }, "approver_groups": { "group": { "web_url": "http://gitlab.example.com/groups/diaspora", "name": "Diaspora", "custom_attributes": { "key": "foo", "value": "bar" }, "ldap_group_links": { "cn": "ldap-group-1", "group_access": 10, "provider": "ldapmain", "filter": "id >= 500", "member_role_id": 12 }, "saml_group_links": { "name": "saml-group-1", "access_level": 40, "member_role_id": 12, "provider": "saml" } } }}Bad Request
Not Found