v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.

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

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'CodeCommit_20150413.GetDifferences' required

Request body

repositoryNamestring required

The name of the repository where you want to get differences.

beforeCommitSpecifierstring

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the <code>afterCommitSpecifier</code> value are shown. If you do not use <code>beforeCommitSpecifier</code> in your request, consider limiting the results with <code>maxResults</code>.

afterCommitSpecifierstring required

The branch, tag, HEAD, or other fully qualified reference used to identify a commit.

beforePathstring

The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If <code>beforePath</code> and <code>afterPath</code> are not specified, differences are shown for all paths.

afterPathstring

The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.

MaxResultsinteger

A non-zero, non-negative integer used to limit the number of returned results.

NextTokenstring

An enumeration token that, when provided in a request, returns the next batch of the results.

Response

Success

NextTokenstring

An enumeration token that can be used in a request to return the next batch of the results.