v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

post/#X-Amz-Target=CodeCommit_20150413.DeletePullRequestApprovalRule

Headers

X-Amz-Target'CodeCommit_20150413.DeletePullRequestApprovalRule' required

Request body

pullRequestIdstring required

The system-generated ID of the pull request that contains the approval rule you want to delete.

approvalRuleNamestring required

The name of the approval rule you want to delete.

Response

Success

approvalRuleIdstring required
<p>The ID of the deleted approval rule. </p> <note> <p>If the approval rule was deleted in an earlier API call, the response is 200 OK without content.</p> </note>