Request Parameters

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
will return information about the initial request that used
that token.

Note

The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you do not have
to generate an idempotency token, as this
will be done for you.

The targets for the pull request, including the source of the code to be reviewed
(the source branch),
and the destination where the creator of the pull request intends the code to be merged
after the pull request is closed
(the destination branch).

Errors

For information about the errors that are common to all actions, see Common Errors.

ClientRequestTokenRequiredException

A client request token is required. A client request token is an 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
will return information about the initial request that used
that token.

HTTP Status Code: 400

EncryptionIntegrityChecksFailedException

An encryption integrity check failed.

HTTP Status Code: 500

EncryptionKeyAccessDeniedException

An encryption key could not be accessed.

HTTP Status Code: 400

EncryptionKeyDisabledException

The encryption key is disabled.

HTTP Status Code: 400

EncryptionKeyNotFoundException

No encryption key was found.

HTTP Status Code: 400

EncryptionKeyUnavailableException

The encryption key is not available.

HTTP Status Code: 400

IdempotencyParameterMismatchException

The client request token is not valid. Either the token is not in a valid format,
or the token has been used in a previous request and cannot be re-used.

HTTP Status Code: 400

InvalidClientRequestTokenException

The client request token is not valid.

HTTP Status Code: 400

InvalidDescriptionException

The pull request description is not valid. Descriptions are limited to 1,000 characters
in length.

HTTP Status Code: 400

InvalidReferenceNameException

The specified reference name format is not valid. Reference names must conform to
the Git references format, for example
refs/heads/master. For more information, see Git Internals - Git References
or consult your Git documentation.

HTTP Status Code: 400

InvalidRepositoryNameException

At least one specified repository name is not valid.

Note

This exception only occurs when a specified repository name is not valid. Other exceptions
occur when a required repository parameter is missing, or when a specified repository
does not exist.

HTTP Status Code: 400

InvalidTargetException

The target for the pull request is not valid. A target must contain the full values
for the repository name, source branch, and destination branch for the pull request.

HTTP Status Code: 400

InvalidTargetsException

The targets for the pull request is not valid or not in a valid format. Targets are
a list of target objects. Each target object must contain the full values for
the repository name, source branch, and destination branch for a pull request.

HTTP Status Code: 400

InvalidTitleException

The title of the pull request is not valid. Pull request titles cannot exceed 100
characters in length.

HTTP Status Code: 400

MaximumOpenPullRequestsExceededException

You cannot create the pull request because the repository has too many open pull requests.
The maximum number of open pull requests for a repository is 1,000. Close one or more
open pull requests, and then try again.

HTTP Status Code: 400

MultipleRepositoriesInPullRequestException

You cannot include more than one repository in a pull request. Make sure you have
specified only one repository name in your request, and then try again.

HTTP Status Code: 400

ReferenceDoesNotExistException

The specified reference does not exist. You must provide a full commit ID.

HTTP Status Code: 400

ReferenceNameRequiredException

A reference name is required, but none was provided.

HTTP Status Code: 400

ReferenceTypeNotSupportedException

The specified reference is not a supported type.

HTTP Status Code: 400

RepositoryDoesNotExistException

The specified repository does not exist.

HTTP Status Code: 400

RepositoryNameRequiredException

A repository name is required but was not specified.

HTTP Status Code: 400

SourceAndDestinationAreSameException

The source branch and the destination branch for the pull request are the same. You
must specify different branches for the source and destination.

HTTP Status Code: 400

TargetRequiredException

A pull request target is required. It cannot be empty or null. A pull request target
must contain the full values for the repository name, source branch, and destination
branch for the pull request.