v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Posts a comment on the comparison between two commits.

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

Headers

X-Amz-Target'CodeCommit_20150413.PostCommentForComparedCommit' required

Request body

repositoryNamestring required

The name of the repository where you want to post a comment on the comparison between commits.

beforeCommitIdstring

To establish the directionality of the comparison, the full commit ID of the before commit. Required for commenting on any commit unless that commit is the initial commit.

afterCommitIdstring required

To establish the directionality of the comparison, the full commit ID of the after commit.

contentstring required

The content of the comment you want to make.

clientRequestTokenstring

A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.

Response

Success

repositoryNamestring

The name of the repository where you posted a comment on the comparison between commits.

beforeCommitIdstring

In the directionality you established, the full commit ID of the before commit.

afterCommitIdstring

In the directionality you established, the full commit ID of the after commit.

beforeBlobIdstring

In the directionality you established, the blob ID of the before blob.

afterBlobIdstring

In the directionality you established, the blob ID of the after blob.