v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Returns the contents of a specified folder in a repository.

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

Headers

X-Amz-Target'CodeCommit_20150413.GetFolder' required

Request body

repositoryNamestring required

The name of the repository.

commitSpecifierstring

A fully qualified reference used to identify a commit that contains the version of the folder's content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.

folderPathstring required

The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.

Response

Success

commitIdstring required

The full commit ID used as a reference for the returned version of the folder content.

folderPathstring required

The fully qualified path of the folder whose contents are returned.

treeIdstring

The full SHA-1 pointer of the tree information for the commit that contains the folder.