AWS CodeCommit
CodeCommit This is the CodeCommit API Reference . This reference provides descriptions of the operations and data types for CodeCommit API along with usage…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
CodeCommit
This is the
CodeCommit API Reference . This reference provides descriptions of the operations and data types for
CodeCommit API along with usage examples.
You can use the CodeCommit API to work with the following objects:
Repositories, by calling the following:
BatchGetRepositories , which returns information about one or more repositories associated with your Amazon Web Services account.
CreateRepository , which creates an CodeCommit repository.
DeleteRepository , which deletes an CodeCommit repository.
GetRepository , which returns information about a specified repository.
ListRepositories , which lists all CodeCommit repositories associated with your Amazon Web Services account.
UpdateRepositoryDescription , which sets or updates the description of the repository.
UpdateRepositoryEncryptionKey , which updates the Key Management Service encryption key used
to encrypt and decrypt a repository.
UpdateRepositoryName , which changes the name of the
repository. If you change the name of a repository, no other users of that
repository can access it until you send them the new HTTPS or SSH URL to
use.
Branches, by calling the following:
CreateBranch , which creates a branch in a specified
repository.
DeleteBranch , which deletes the specified branch in a repository unless it is the default branch.
GetBranch , which returns information about a specified branch.
ListBranches , which lists all branches for a specified repository.
UpdateDefaultBranch , which changes the default branch for a repository.
Files, by calling the following:
DeleteFile , which deletes the content of a specified file from a specified branch.
GetBlob , which returns the base-64 encoded content of an
individual Git blob object in a repository.
GetBlobDifferences , which returns a structured, line-level
diff between two blob versions in a repository, with optional surrounding
context lines.
GetFile , which returns the base-64 encoded content of a specified file.
GetFolder , which returns the contents of a specified folder or directory.
ListFileCommitHistory , which retrieves a list of commits and changes to a specified file.
PutFile , which adds or modifies a single file in a specified repository and branch.
Commits, by calling the following:
BatchGetCommits , which returns information about one or more commits in a repository.
CreateCommit , which creates a commit for changes to a repository.
GetCommit , which returns information about a commit, including commit
messages and author and committer information.
GetDifferences , which returns information about the
differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID,
or other fully qualified reference).
Merges, by calling the following:
BatchDescribeMergeConflicts , which returns information about conflicts in a merge between commits in a repository.
CreateUnreferencedMergeCommit , which creates an unreferenced commit between two branches or commits for the
purpose of comparing them and identifying any potential conflicts.
DescribeMergeConflicts , which returns information about merge conflicts between the base, source, and destination versions
of a file in a potential merge.
GetMergeCommit , which returns information about the merge between a source and destination commit.
GetMergeConflicts , which returns information about merge conflicts
between the source and destination branch in a pull request.
GetMergeOptions , which returns information about the available merge options between two branches or commit specifiers.
MergeBranchesByFastForward , which merges two branches using the fast-forward merge option.
MergeBranchesBySquash , which merges two branches using the squash merge option.
MergeBranchesByThreeWay , which merges two branches using the three-way merge option.
Pull requests, by calling the following:
CreatePullRequest , which creates a pull request in a specified repository.
…
Endpoints 80
- POSTAssociate approval rule template with repository
/#X-Amz-Target=CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepositoryCreates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the… - POSTBatch associate approval rule template with repositories
/#X-Amz-Target=CodeCommit_20150413.BatchAssociateApprovalRuleTemplateWithRepositoriesCreates an association between an approval rule template and one or more specified repositories. - POSTBatch describe merge conflicts
/#X-Amz-Target=CodeCommit_20150413.BatchDescribeMergeConflictsReturns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. - POSTBatch disassociate approval rule template from repositories
/#X-Amz-Target=CodeCommit_20150413.BatchDisassociateApprovalRuleTemplateFromRepositoriesRemoves the association between an approval rule template and one or more specified repositories. - POSTBatch get commits
/#X-Amz-Target=CodeCommit_20150413.BatchGetCommitsReturns information about the contents of one or more commits in a repository. - POSTBatch get repositories
/#X-Amz-Target=CodeCommit_20150413.BatchGetRepositoriesReturns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters.… - POSTCreate approval rule template
/#X-Amz-Target=CodeCommit_20150413.CreateApprovalRuleTemplateCreates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a… - POSTCreate branch
/#X-Amz-Target=CodeCommit_20150413.CreateBranchCreates a branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do… - POSTCreate commit
/#X-Amz-Target=CodeCommit_20150413.CreateCommitCreates a commit for a repository on the tip of a specified branch. - POSTCreate pull request
/#X-Amz-Target=CodeCommit_20150413.CreatePullRequestCreates a pull request in the specified repository. - POSTCreate pull request approval rule
/#X-Amz-Target=CodeCommit_20150413.CreatePullRequestApprovalRuleCreates an approval rule for a pull request. - POSTCreate repository
/#X-Amz-Target=CodeCommit_20150413.CreateRepositoryCreates a new, empty repository. - POSTCreate unreferenced merge commit
/#X-Amz-Target=CodeCommit_20150413.CreateUnreferencedMergeCommitCreates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of… - POSTDelete approval rule template
/#X-Amz-Target=CodeCommit_20150413.DeleteApprovalRuleTemplateDeletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template. - POSTDelete branch
/#X-Amz-Target=CodeCommit_20150413.DeleteBranchDeletes a branch from a repository, unless that branch is the default branch for the repository. - POSTDelete comment content
/#X-Amz-Target=CodeCommit_20150413.DeleteCommentContentDeletes the content of a comment made on a change, file, or commit in a repository. - POSTDelete file
/#X-Amz-Target=CodeCommit_20150413.DeleteFileDeletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier… - POSTDelete pull request approval rule
/#X-Amz-Target=CodeCommit_20150413.DeletePullRequestApprovalRuleDeletes 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… - POSTDelete repository
/#X-Amz-Target=CodeCommit_20150413.DeleteRepositoryDeletes a repository. If a specified repository was already deleted, a null repository ID is returned. Deleting a repository also deletes all associated… - POSTDescribe merge conflicts
/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflictsReturns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the… - POSTDescribe pull request events
/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEventsReturns information about one or more pull request events. - POSTDisassociate approval rule template from repository
/#X-Amz-Target=CodeCommit_20150413.DisassociateApprovalRuleTemplateFromRepositoryRemoves the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are… - POSTEvaluate pull request approval rules
/#X-Amz-Target=CodeCommit_20150413.EvaluatePullRequestApprovalRulesEvaluates whether a pull request has met all the conditions specified in its associated approval rules. - POSTGet approval rule template
/#X-Amz-Target=CodeCommit_20150413.GetApprovalRuleTemplateReturns information about a specified approval rule template. - POSTGet blob
/#X-Amz-Target=CodeCommit_20150413.GetBlobReturns the base-64 encoded content of an individual blob in a repository. - POSTGet blob differences
/#X-Amz-Target=CodeCommit_20150413.GetBlobDifferencesReturns a structured, line-level diff between two blob versions in a repository. The diff is returned as an ordered list of hunks, where each hunk represents… - POSTGet branch
/#X-Amz-Target=CodeCommit_20150413.GetBranchReturns information about a repository branch, including its name and the last commit ID. - POSTGet comment
/#X-Amz-Target=CodeCommit_20150413.GetCommentReturns the content of a comment made on a change, file, or commit in a repository. Reaction counts might include numbers from user identities who were… - POSTGet comment reactions
/#X-Amz-Target=CodeCommit_20150413.GetCommentReactionsReturns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count. - POSTGet comments for compared commit
/#X-Amz-Target=CodeCommit_20150413.GetCommentsForComparedCommitReturns information about comments made on the comparison between two commits. Reaction counts might include numbers from user identities who were deleted… - POSTGet comments for pull request
/#X-Amz-Target=CodeCommit_20150413.GetCommentsForPullRequestReturns comments made on a pull request. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count… - POSTGet commit
/#X-Amz-Target=CodeCommit_20150413.GetCommitReturns information about a commit, including commit message and committer information. - POSTGet differences
/#X-Amz-Target=CodeCommit_20150413.GetDifferencesReturns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results… - POSTGet file
/#X-Amz-Target=CodeCommit_20150413.GetFileReturns the base-64 encoded contents of a specified file and its metadata. - POSTGet folder
/#X-Amz-Target=CodeCommit_20150413.GetFolderReturns the contents of a specified folder in a repository. - POSTGet merge commit
/#X-Amz-Target=CodeCommit_20150413.GetMergeCommitReturns information about a specified merge commit. - POSTGet merge conflicts
/#X-Amz-Target=CodeCommit_20150413.GetMergeConflictsReturns information about merge conflicts between the before and after commit IDs for a pull request in a repository. - POSTGet merge options
/#X-Amz-Target=CodeCommit_20150413.GetMergeOptionsReturns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use… - POSTGet pull request
/#X-Amz-Target=CodeCommit_20150413.GetPullRequestGets information about a pull request in a specified repository. - POSTGet pull request approval states
/#X-Amz-Target=CodeCommit_20150413.GetPullRequestApprovalStatesGets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules… - POSTGet pull request override state
/#X-Amz-Target=CodeCommit_20150413.GetPullRequestOverrideStateReturns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or… - POSTGet repository
/#X-Amz-Target=CodeCommit_20150413.GetRepositoryReturns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that… - POSTGet repository triggers
/#X-Amz-Target=CodeCommit_20150413.GetRepositoryTriggersGets information about triggers configured for a repository. - POSTList approval rule templates
/#X-Amz-Target=CodeCommit_20150413.ListApprovalRuleTemplatesLists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not… - POSTList associated approval rule templates for repository
/#X-Amz-Target=CodeCommit_20150413.ListAssociatedApprovalRuleTemplatesForRepositoryLists all approval rule templates that are associated with a specified repository. - POSTList branches
/#X-Amz-Target=CodeCommit_20150413.ListBranchesGets information about one or more branches in a repository. - POSTList file commit history
/#X-Amz-Target=CodeCommit_20150413.ListFileCommitHistoryRetrieves a list of commits and changes to a specified file. - POSTList pull requests
/#X-Amz-Target=CodeCommit_20150413.ListPullRequestsReturns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN. - POSTList repositories
/#X-Amz-Target=CodeCommit_20150413.ListRepositoriesGets information about one or more repositories. - POSTList repositories for approval rule template
/#X-Amz-Target=CodeCommit_20150413.ListRepositoriesForApprovalRuleTemplateLists all repositories associated with the specified approval rule template. - POSTList tags for resource
/#X-Amz-Target=CodeCommit_20150413.ListTagsForResourceGets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see… - POSTMerge branches by fast forward
/#X-Amz-Target=CodeCommit_20150413.MergeBranchesByFastForwardMerges two branches using the fast-forward merge strategy. - POSTMerge branches by squash
/#X-Amz-Target=CodeCommit_20150413.MergeBranchesBySquashMerges two branches using the squash merge strategy. - POSTMerge branches by three way
/#X-Amz-Target=CodeCommit_20150413.MergeBranchesByThreeWayMerges two specified branches using the three-way merge strategy. - POSTMerge pull request by fast forward
/#X-Amz-Target=CodeCommit_20150413.MergePullRequestByFastForwardAttempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the… - POSTMerge pull request by squash
/#X-Amz-Target=CodeCommit_20150413.MergePullRequestBySquashAttempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash… - POSTMerge pull request by three way
/#X-Amz-Target=CodeCommit_20150413.MergePullRequestByThreeWayAttempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way… - POSTOverride pull request approval rules
/#X-Amz-Target=CodeCommit_20150413.OverridePullRequestApprovalRulesSets aside (overrides) all approval rule requirements for a specified pull request. - POSTPost comment for compared commit
/#X-Amz-Target=CodeCommit_20150413.PostCommentForComparedCommitPosts a comment on the comparison between two commits. - POSTPost comment for pull request
/#X-Amz-Target=CodeCommit_20150413.PostCommentForPullRequestPosts a comment on a pull request. - POSTPost comment reply
/#X-Amz-Target=CodeCommit_20150413.PostCommentReplyPosts a comment in reply to an existing comment on a comparison between commits or a pull request. - POSTPut comment reaction
/#X-Amz-Target=CodeCommit_20150413.PutCommentReactionAdds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself.… - POSTPut file
/#X-Amz-Target=CodeCommit_20150413.PutFileAdds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch. - POSTPut repository triggers
/#X-Amz-Target=CodeCommit_20150413.PutRepositoryTriggersReplaces all triggers for a repository. Used to create or delete triggers. - POSTTag resource
/#X-Amz-Target=CodeCommit_20150413.TagResourceAdds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User… - POSTTest repository triggers
/#X-Amz-Target=CodeCommit_20150413.TestRepositoryTriggersTests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data… - POSTUntag resource
/#X-Amz-Target=CodeCommit_20150413.UntagResourceRemoves tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide . - POSTUpdate approval rule template content
/#X-Amz-Target=CodeCommit_20150413.UpdateApprovalRuleTemplateContentUpdates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an… - POSTUpdate approval rule template description
/#X-Amz-Target=CodeCommit_20150413.UpdateApprovalRuleTemplateDescriptionUpdates the description for a specified approval rule template. - POSTUpdate approval rule template name
/#X-Amz-Target=CodeCommit_20150413.UpdateApprovalRuleTemplateNameUpdates the name of a specified approval rule template. - POSTUpdate comment
/#X-Amz-Target=CodeCommit_20150413.UpdateCommentReplaces the contents of a comment. - POSTUpdate default branch
/#X-Amz-Target=CodeCommit_20150413.UpdateDefaultBranchSets or changes the default branch name for the specified repository. If you use this operation to change the default branch name to the current default… - POSTUpdate pull request approval rule content
/#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestApprovalRuleContentUpdates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the… - POSTUpdate pull request approval state
/#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestApprovalStateUpdates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made. - POSTUpdate pull request description
/#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestDescriptionReplaces the contents of the description of a pull request. - POSTUpdate pull request status
/#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestStatusUpdates the status of a pull request. - POSTUpdate pull request title
/#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestTitleReplaces the title of a pull request. - POSTUpdate repository description
/#X-Amz-Target=CodeCommit_20150413.UpdateRepositoryDescriptionSets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode… - POSTUpdate repository encryption key
/#X-Amz-Target=CodeCommit_20150413.UpdateRepositoryEncryptionKeyUpdates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository. - POSTUpdate repository name
/#X-Amz-Target=CodeCommit_20150413.UpdateRepositoryNameRenames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric,…
API details
- Base URL
https://codecommit.{region}.amazonaws.com- Authentication
- AWS Signature Version 4 (requests signed with your AWS access key)
- Operations
- 80 operations on 80 pathsPOST 80
- Description format
- AWS Smithy model, API version
2015-04-13 - Links
- Documentation · OpenAPI document
- Listed from
- AWS Smithy API model (aws/api-models-aws) (Apache-2.0)
How to test the AWS CodeCommit in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the AWS CodeCommit collection, without the publisher's secrets.
- Add your credentialsThis API uses AWS Signature Version 4 (requests signed with your AWS access key). Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Associate approval rule template with repository” (POST /#X-Amz-Target=CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepository), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the AWS CodeCommit?
CodeCommit This is the CodeCommit API Reference . This reference provides descriptions of the operations and data types for CodeCommit API along with usage… It is listed under Developer tools and has 80 endpoints.
Who publishes the AWS CodeCommit?
It is listed from Amazon Web Services, Inc.'s public API description (an OpenAPI document), not published by Amazon Web Services, Inc. on Swastik Codes. Anyone who controls amazonaws.com can claim the profile by adding a DNS TXT record.
What is the base URL of the AWS CodeCommit?
Requests go to https://codecommit.{region}.amazonaws.com. Endpoint paths are added to this base URL.
How do I authenticate with the AWS CodeCommit?
With AWS Signature Version 4 (requests signed with your AWS access key).
How many endpoints does the AWS CodeCommit have?
80 operations on 80 paths (80 POST).
Is forking the AWS CodeCommit free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.