Skip to content

Delete an approval rule for a merge request

DELETE
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules/{approval_rule_id}

Deletes a specified approval rule for a merge request. The report_approver or code_owner rules are system-generated, and you cannot edit them.

id
required
One of:
string

The ID or URL-encoded path of the project

merge_request_iid
required
integer

The IID of a merge request

approval_rule_id
required
integer

The ID of a merge request approval rule

No Content

Bad Request

Not Found