

# CreateSourceUpload

Creates a source upload and returns a presigned URL for uploading application source artifacts from .zip files.

## Request Syntax
<a name="API_CreateSourceUpload_RequestSyntax"></a>

```
POST /source-uploads HTTP/1.1
Content-type: application/json

{
   "ZipUpload": { 
      "Digest": "{{string}}"
   }
}
```

## URI Request Parameters
<a name="API_CreateSourceUpload_RequestParameters"></a>

The request does not use any URI parameters.

## Request Body
<a name="API_CreateSourceUpload_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [ZipUpload](#API_CreateSourceUpload_RequestSyntax) **   <a name="amplifygen3-CreateSourceUpload-request-ZipUpload"></a>
The .zip file to upload as the source.  
Type: [ZipUploadRequest](API_ZipUploadRequest.md) object  
Required: Yes

## Response Syntax
<a name="API_CreateSourceUpload_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "SourceUploadId": "string",
   "UploadExpiresAt": number,
   "ZipUpload": { 
      "Digest": "string",
      "UploadUrl": "string",
      "UrlExpiresAt": number
   }
}
```

## Response Elements
<a name="API_CreateSourceUpload_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [SourceUploadId](#API_CreateSourceUpload_ResponseSyntax) **   <a name="amplifygen3-CreateSourceUpload-response-SourceUploadId"></a>
The ID of the source upload.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `[a-zA-Z0-9-]+` 

 ** [UploadExpiresAt](#API_CreateSourceUpload_ResponseSyntax) **   <a name="amplifygen3-CreateSourceUpload-response-UploadExpiresAt"></a>
The time at which the upload expires. The value is in ISO-8601 format.  
Type: Timestamp

 ** [ZipUpload](#API_CreateSourceUpload_ResponseSyntax) **   <a name="amplifygen3-CreateSourceUpload-response-ZipUpload"></a>
The upload details, including the presigned URL for uploading the .zip file.  
Type: [ZipUpload](API_ZipUpload.md) object

## Errors
<a name="API_CreateSourceUpload_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You do not have sufficient permissions to perform this action.    
 ** message **   
A message that describes the error.
HTTP Status Code: 403

 ** InternalServerException **   
An internal error occurred. Retry the request.    
 ** message **   
A message that describes the error.  
 ** retryAfterSeconds **   
The number of seconds to wait before you retry the request.
HTTP Status Code: 500

 ** ThrottlingException **   
The request was denied because the request rate exceeds the allowed limit.    
 ** message **   
A message that describes the error.  
 ** quotaCode **   
The code of the service quota that caused the throttling.  
 ** retryAfterSeconds **   
The number of seconds to wait before you retry the request.  
 ** serviceCode **   
The code of the service that the quota belongs to.
HTTP Status Code: 429

 ** ValidationException **   
The request contains invalid parameters or is otherwise malformed.    
 ** message **   
A message that describes the error.
HTTP Status Code: 400

## See Also
<a name="API_CreateSourceUpload_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/amplifygen3-2025-09-18/CreateSourceUpload) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/amplifygen3-2025-09-18/CreateSourceUpload) 