Open documentation ↗Overview
<fullname>AWS CodeCommit</fullname> <p>This is the <i>AWS CodeCommit API Reference</i>. This reference provides descriptions of the operations and data types for AWS CodeCommit API along with usage examples.</p> <p>You can use the AWS CodeCommit API to work with the following objects:</p> <p>Repositories, by calling the following:</p> <ul> <li> <p> <a>BatchGetRepositories</a>, which returns information about one or more repositories associated with your AWS account.</p> </li> <li> <p> <a>CreateRepository</a>, which creates an AWS CodeCommit repository.</p> </li> <li> <p> <a>DeleteRepository</a>, which deletes an AWS CodeCommit repository.</p> </li> <li> <p> <a>GetRepository</a>, which returns information about a specified repository.</p> </li> <li> <p> <a>ListRepositories</a>, which lists all AWS CodeCommit repositories associated with your AWS account.</p> </li> <li> <p> <a>UpdateRepositoryDescription</a>, which sets or updates the description of the repository.</p> </li> <li> <p> <a>UpdateRepositoryName</a>, 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.</p> </li> </ul> <p>Branches, by calling the following:</p> <ul> <li> <p> <a>CreateBranch</a>, which creates a branch in a specified repository.</p> </li> <li> <p> <a>DeleteBranch</a>, which deletes the specified branch in a repository unless it is the default branch.</p> </li> <li> <p> <a>GetBranch</a>, which returns information about a specified branch.</p> </li> <li> <p> <a>ListBranches</a>, which lists all branches for a specified repository.</p> </li> <li> <p> <a>UpdateDefaultBranch</a>, which changes the default branch for a repository.</p> </li> </ul> <p>Files, by calling the following:</p> <ul> <li> <p> <a>DeleteFile</a>, which deletes the content of a specified file from a specified branch.</p> </li> <li> <p> <a>GetBlob</a>, which returns the base-64 encoded content of an individual Git blob object in a repository.</p> </li> <li> <p> <a>GetFile</a>, which returns the base-64 encoded content of a specified file.</p> </li> <li> <p> <a>GetFolder</a>, which returns the contents of a specified folder or directory.</p> </li> <li> <p> <a>PutFile</a>, which adds or modifies a single file in a specified repository and branch.</p> </li> </ul> <p>Commits, by calling the following:</p> <ul> <li> <p> <a>BatchGetCommits</a>, which returns information about one or more commits in a repository.</p> </li> <li> <p> <a>CreateCommit</a>, which creates a commit for changes to a repository.</p> </li> <li> <p> <a>GetCommit</a>, which returns information about a commit, including commit messages and author and committer information.</p> </li> <li> <p> <a>GetDifferences</a>, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).</p> </li> </ul> <p>Merges, by calling the following:</p> <ul> <li> <p> <a>BatchDescribeMergeConflicts</a>, which returns information about conflicts in a merge between commits in a repository.</p> </li> <li> <p> <a>CreateUnreferencedMergeCommit</a>, which creates an unreferenced commit between two branches or commits for the purpose of comparing them and identifying any potential conflicts.</p> </li> <li> <p> <a>DescribeMergeConflicts</a>, which returns information about merge conflicts between the base, source, and destination versions of a file in a potential merge.</p> </li> <li> <p> <a>GetMergeCommit</a>, which returns information about the merge between a source and destination commit. </p> </li> <li> <p> <a>GetMergeConflicts</a>, which returns information about merge conflicts between the source and destination branch in a pull request.</p> </li> <li> <p> <a>GetMergeOptions</a>, which returns information about the available merge options between two branches or commit specifiers.</p> </li> <li> <p> <a>MergeBranchesByFastForward</a
AWS CodeCommit is a cloud platforms API from amazonaws.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 77 endpoints.
At a glance
- Authentication
- API key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Cloud Platforms
- Version
- 2015-04-13
- Endpoints
- 77
- OpenAPI
- Specification ↗
- Spec updated
- 2020-03-11
Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /#X-Amz-Target=CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepository | Creates 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 d |
| POST | /#X-Amz-Target=CodeCommit_20150413.BatchAssociateApprovalRuleTemplateWithRepositories | Creates an association between an approval rule template and one or more specified repositories. |
| POST | /#X-Amz-Target=CodeCommit_20150413.BatchDescribeMergeConflicts | Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. |
| POST | /#X-Amz-Target=CodeCommit_20150413.BatchDisassociateApprovalRuleTemplateFromRepositories | Removes the association between an approval rule template and one or more specified repositories. |
| POST | /#X-Amz-Target=CodeCommit_20150413.BatchGetCommits | Returns information about the contents of one or more commits in a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.BatchGetRepositories | <p>Returns information about one or more repositories.</p> <note> <p>The description field for a repository accepts all HTML characters and all valid Unicode ch |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreateApprovalRuleTemplate | Creates a template for approval rules that can then be associated with one or more repositories in your AWS account. When you associate a template with a reposi |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreateBranch | <p>Creates a branch in a repository and points the branch to a commit.</p> <note> <p>Calling the create branch operation does not set a repository's default bra |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreateCommit | Creates a commit for a repository on the tip of a specified branch. |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreatePullRequest | Creates a pull request in the specified repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreatePullRequestApprovalRule | Creates an approval rule for a pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreateRepository | Creates a new, empty repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.CreateUnreferencedMergeCommit | <p>Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome o |
| POST | /#X-Amz-Target=CodeCommit_20150413.DeleteApprovalRuleTemplate | Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template. |
| POST | /#X-Amz-Target=CodeCommit_20150413.DeleteBranch | Deletes a branch from a repository, unless that branch is the default branch for the repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.DeleteCommentContent | Deletes the content of a comment made on a change, file, or commit in a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.DeleteFile | Deletes 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 to |
| POST | /#X-Amz-Target=CodeCommit_20150413.DeletePullRequestApprovalRule | 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 |
| POST | /#X-Amz-Target=CodeCommit_20150413.DeleteRepository | <p>Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.</p> <important> <p>Deleting a repository also deletes |
| POST | /#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts | Returns 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 merge |
| POST | /#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents | Returns information about one or more pull request events. |
| POST | /#X-Amz-Target=CodeCommit_20150413.DisassociateApprovalRuleTemplateFromRepository | Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are cr |
| POST | /#X-Amz-Target=CodeCommit_20150413.EvaluatePullRequestApprovalRules | Evaluates whether a pull request has met all the conditions specified in its associated approval rules. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetApprovalRuleTemplate | Returns information about a specified approval rule template. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetBlob | Returns the base-64 encoded content of an individual blob in a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetBranch | Returns information about a repository branch, including its name and the last commit ID. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetComment | <p>Returns the content of a comment made on a change, file, or commit in a repository. </p> <note> <p>Reaction counts might include numbers from user identities |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetCommentReactions | Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetCommentsForComparedCommit | <p>Returns information about comments made on the comparison between two commits.</p> <note> <p>Reaction counts might include numbers from user identities who w |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetCommentsForPullRequest | <p>Returns comments made on a pull request.</p> <note> <p>Reaction counts might include numbers from user identities who were deleted after the reaction was mad |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetCommit | Returns information about a commit, including commit message and committer information. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetDifferences | 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 |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetFile | Returns the base-64 encoded contents of a specified file and its metadata. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetFolder | Returns the contents of a specified folder in a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetMergeCommit | Returns information about a specified merge commit. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetMergeConflicts | Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetMergeOptions | Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeCon |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetPullRequest | Gets information about a pull request in a specified repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetPullRequestApprovalStates | Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applie |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetPullRequestOverrideState | Returns 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 i |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetRepository | <p>Returns information about a repository.</p> <note> <p>The description field for a repository accepts all HTML characters and all valid Unicode characters. Ap |
| POST | /#X-Amz-Target=CodeCommit_20150413.GetRepositoryTriggers | Gets information about triggers configured for a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListApprovalRuleTemplates | Lists all approval rule templates in the specified AWS Region in your AWS account. If an AWS Region is not specified, the AWS Region where you are signed in is |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListAssociatedApprovalRuleTemplatesForRepository | Lists all approval rule templates that are associated with a specified repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListBranches | Gets information about one or more branches in a repository. |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListPullRequests | Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN. |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListRepositories | Gets information about one or more repositories. |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListRepositoriesForApprovalRuleTemplate | Lists all repositories associated with the specified approval rule template. |
| POST | /#X-Amz-Target=CodeCommit_20150413.ListTagsForResource | Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see <a href="http |
| POST | /#X-Amz-Target=CodeCommit_20150413.MergeBranchesByFastForward | Merges two branches using the fast-forward merge strategy. |
| POST | /#X-Amz-Target=CodeCommit_20150413.MergeBranchesBySquash | Merges two branches using the squash merge strategy. |
| POST | /#X-Amz-Target=CodeCommit_20150413.MergeBranchesByThreeWay | Merges two specified branches using the three-way merge strategy. |
| POST | /#X-Amz-Target=CodeCommit_20150413.MergePullRequestByFastForward | Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward |
| POST | /#X-Amz-Target=CodeCommit_20150413.MergePullRequestBySquash | Attempts 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 merge |
| POST | /#X-Amz-Target=CodeCommit_20150413.MergePullRequestByThreeWay | Attempts 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 me |
| POST | /#X-Amz-Target=CodeCommit_20150413.OverridePullRequestApprovalRules | Sets aside (overrides) all approval rule requirements for a specified pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.PostCommentForComparedCommit | Posts a comment on the comparison between two commits. |
| POST | /#X-Amz-Target=CodeCommit_20150413.PostCommentForPullRequest | Posts a comment on a pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.PostCommentReply | Posts a comment in reply to an existing comment on a comparison between commits or a pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.PutCommentReaction | Adds 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. Y |
| POST | /#X-Amz-Target=CodeCommit_20150413.PutFile | Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch. |
| POST | /#X-Amz-Target=CodeCommit_20150413.PutRepositoryTriggers | Replaces all triggers for a repository. Used to create or delete triggers. |
| POST | /#X-Amz-Target=CodeCommit_20150413.TagResource | Adds or updates tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see <a href="https://docs.aws.amazon.com/codecommit/late |
| POST | /#X-Amz-Target=CodeCommit_20150413.TestRepositoryTriggers | Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data fr |
| POST | /#X-Amz-Target=CodeCommit_20150413.UntagResource | Removes tags for a resource in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see <a href="https://docs.aws.amazon.com/codecommit/latest/userg |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateApprovalRuleTemplateContent | Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateApprovalRuleTemplateDescription | Updates the description for a specified approval rule template. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateApprovalRuleTemplateName | Updates the name of a specified approval rule template. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateComment | Replaces the contents of a comment. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateDefaultBranch | <p>Sets or changes the default branch name for the specified repository.</p> <note> <p>If you use this operation to change the default branch name to the curren |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestApprovalRuleContent | Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestApprovalState | Updates 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. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestDescription | Replaces the contents of the description of a pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestStatus | Updates the status of a pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdatePullRequestTitle | Replaces the title of a pull request. |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateRepositoryDescription | <p>Sets or changes the comment or description for a repository.</p> <note> <p>The description field for a repository accepts all HTML characters and all valid U |
| POST | /#X-Amz-Target=CodeCommit_20150413.UpdateRepositoryName | Renames a repository. The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore |
Questions
Does the AWS CodeCommit API need an API key?
Yes. The AWS CodeCommit API uses API key authentication; the documentation explains how to get credentials.
Does the AWS CodeCommit API support HTTPS?
Yes, the AWS CodeCommit API is served over HTTPS.
How many endpoints does the AWS CodeCommit API have?
Its OpenAPI description lists 77 endpoints in version 2015-04-13. All of them are shown on this page.
What are alternatives to the AWS CodeCommit API?
Other Cloud Platforms APIs include Remote Settings PROD, Linode API, DigitalOcean API, Vercel API, Platform API.
Similar cloud platforms APIs
Compare alternatives →Remote Settings PROD
Cloud PlatformsFirefox is a free web browser backed by Mozilla, a non-profit dedicated to internet health and privacy.
Linode API
Cloud Platforms## Introduction The Linode API provides the ability to programmatically manage the full range of Linode products and services. This reference is designed to assist application developers and system administrators. Each endpoint includes descriptions, request syntax, and examples using standard HTTP requests. Response data is returned in JSON format. This document was generated from our OpenAPI Specification. See the <a target="_top" href="https://www.openapis.org">OpenAPI website</a> for more information. <a target="_top" href="/docs/api/openapi.yaml">Download the Linode OpenAPI Specification</a>. ## Changelog <a target="_top" href="/docs/products/tools/api/release-notes/">View our Changelog</a> to see release notes on all changes made to our API. ## Access and Authentication Some endpoints are publicly accessible without requiring authentication. All endpoints affecting your Account, however, require either a Personal Access Token or OAuth authentication (when using third-party applications). ### Personal Access Token The easiest way to access the API is with a Personal Access Token (PAT) generated from the <a target="_top" href="https://cloud.linode.com/profile/tokens">Linode Cloud Manager</a> or the [Create Personal Access Token](/docs/api/profile/#personal-access-token-create) endpoint. All scopes for the OAuth security model ([defined below](/docs/api/profile/#oauth)) apply to this security model as well. #### Authentication | Security Scheme Type: | HTTP | |-----------------------|------| | **HTTP Authorization Scheme** | bearer | ### OAuth If you only need to access the Linode API for personal use, we recommend that you create a [personal access token](/docs/api/#personal-access-token). If you're designing an application that can authenticate with an arbitrary Linode user, then you should use the OAuth 2.0 workflows presented in this section. For a more detailed example of an OAuth 2.0 implementation, see our guide on [How to Create an OAuth App with the Linode Python API Library](/docs/products/tools/api/guides/create-an-oauth-app-with-the-python-api-library/#oauth-2-authentication-exchange). Before you implement OAuth in your application, you first need to create an OAuth client. You can do this [with the Linode API](/docs/api/account/#oauth-client-create) or [via the Cloud Manager](https://cloud.linode.com/profile/clients): - When creating the client, you'll supply a `label` and a `redirect_uri` (referred to as the Callback URL in the Cloud Manager). - The response from this endpoint will give you a `client_id` and a `secret`. - Clients can be public or private, and are private by default. You can choose to make the client public when it is created. - A private client is used with applications which can securely store the client secret (that is, the secret returned to you when you first created the client). For example, an application running on a secured server that only the developer has access to would use a private OAuth client. This is also called a confidential client in some OAuth documentation. - A public client is used with applications where the client secret is not guaranteed to be secure. For example, a native app running on a user's computer may not be able to keep the client secret safe, as a user could potentially inspect the source of the application. So, native apps or apps that run in a user's browser should use a public client. - Public and private clients follow different workflows, as described below. #### OAuth Workflow The OAuth workflow is a series of exchanges between your third-party app and Linode. The workflow is used to authenticate a user before an application can start making API calls on the user's behalf. Notes: - With respect to the diagram in [section 1.2 of RFC 6749](https://tools.ietf.org/html/rfc6749#section-1.2), login.linode.com (referred to in this section as the *login server*) is the Resource Owner and the Authorization Server; api.linode.com (referred to here as the *api se
DigitalOcean API
Cloud Platforms# Introduction The DigitalOcean API allows you to manage Droplets and resources within the DigitalOcean cloud in a simple, programmatic way using conventional HTTP requests. All of the functionality that you are familiar with in the DigitalOcean control panel is also available through the API, allowing you to script the complex actions that your situation requires. The API documentation will start with a general overview about the design and technology that has been implemented, followed by reference information about specific endpoints. ## Requests Any tool that is fluent in HTTP can communicate with the API simply by requesting the correct URI. Requests should be made using the HTTPS protocol so that traffic is encrypted. The interface responds to different methods depending on the action required. |Method|Usage| |--- |--- | |GET|For simple retrieval of information about your account, Droplets, or environment, you should use the GET method. The information you request will be returned to you as a JSON object. The attributes defined by the JSON object can be used to form additional requests. Any request using the GET method is read-only and will not affect any of the objects you are querying.| |DELETE|To destroy a resource and remove it from your account and environment, the DELETE method should be used. This will remove the specified object if it is found. If it is not found, the operation will return a response indicating that the object was not found. This idempotency means that you do not have to check for a resource's availability prior to issuing a delete command, the final state will be the same regardless of its existence.| |PUT|To update the information about a resource in your account, the PUT method is available. Like the DELETE Method, the PUT method is idempotent. It sets the state of the target using the provided values, regardless of their current values. Requests using the PUT method do not need to check the current attributes of the object.| |PATCH|Some resources support partial modification. In these cases, the PATCH method is available. Unlike PUT which generally requires a complete representation of a resource, a PATCH request is is a set of instructions on how to modify a resource updating only specific attributes.| |POST|To create a new object, your request should specify the POST method. The POST request includes all of the attributes necessary to create a new object. When you wish to create a new object, send a POST request to the target endpoint.| |HEAD|Finally, to retrieve metadata information, you should use the HEAD method to get the headers. This returns only the header of what would be returned with an associated GET request. Response headers contain some useful information about your API access and the results that are available for your request. For instance, the headers contain your current rate-limit value and the amount of time available until the limit resets. It also contains metrics about the total number of objects found, pagination information, and the total content length.| ## HTTP Statuses Along with the HTTP methods that the API responds to, it will also return standard HTTP statuses, including error codes. In the event of a problem, the status will contain the error code, while the body of the response will usually contain additional information about the problem that was encountered. In general, if the status returned is in the 200 range, it indicates that the request was fulfilled successfully and that no error was encountered. Return codes in the 400 range typically indicate that there was an issue with the request that was sent. Among other things, this could mean that you did not authenticate correctly, that you are requesting an action that you do not have authorization for, that the object you are requesting does not exist, or that your request is malformed. If you receive a status in the 500 range, this generally indicates a server-side problem. This means that we are having
Vercel API
Cloud PlatformsVercel combines the best developer experience with an obsessive focus on end-user performance. Our platform enables frontend teams to do their best work.
Platform API
Cloud PlatformsThe [REST API specification](https://www.ably.io/documentation/rest-api) for Ably.
Azure Data Lake Storage
Cloud PlatformsAzure Data Lake Storage provides storage for Hadoop and other big data workloads.
Listed from APIs.guru (CC0).