POST /apps/{appId}
Updates an existing Amplify app.
Servers
- https://amplify.{region}.amazonaws.com
- https://amplify.{region}.amazonaws.com.cn
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
appId |
String | Yes |
The unique ID for an Amplify app. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
X-Amz-Content-Sha256 |
String | No | |
X-Amz-Credential |
String | No | |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
X-Amz-Date |
String | No | |
X-Amz-Algorithm |
String | No | |
X-Amz-SignedHeaders |
String | No | |
X-Amz-Security-Token |
String | No | |
X-Amz-Signature |
String | No |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
buildSpec |
String | No |
The build specification (build spec) file for an Amplify app build. |
customHeaders |
String | No |
The custom HTTP headers for an Amplify app. |
autoBranchCreationConfig |
Object | No |
Describes the automated branch creation configuration. |
autoBranchCreationConfig.buildSpec |
String | No |
The build specification (build spec) for the autocreated branch. |
autoBranchCreationConfig.enablePullRequestPreview |
Boolean | No |
Enables pull request previews for the autocreated branch. |
autoBranchCreationConfig.enablePerformanceMode |
Boolean | No |
Enables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. |
autoBranchCreationConfig.enableBasicAuth |
Boolean | No |
Enables basic authorization for the autocreated branch. |
autoBranchCreationConfig.pullRequestEnvironmentName |
String | No |
The Amplify environment name for the pull request. |
autoBranchCreationConfig.stage |
String | No |
Describes the current stage for the autocreated branch. Valid values:
|
autoBranchCreationConfig.enableAutoBuild |
Boolean | No |
Enables auto building for the autocreated branch. |
autoBranchCreationConfig.basicAuthCredentials |
String | No |
The basic authorization credentials for the autocreated branch. You must base64-encode the authorization credentials and provide them in the format |
autoBranchCreationConfig.framework |
String | No |
The framework for the autocreated branch. |
description |
String | No |
The description for an Amplify app. |
iamServiceRoleArn |
String | No |
The AWS Identity and Access Management (IAM) service role for an Amplify app. |
autoBranchCreationPatterns[] |
Array | No |
Describes the automated branch creation glob patterns for an Amplify app. |
enableBranchAutoDeletion |
Boolean | No |
Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository. |
environmentVariables |
Object | No |
The environment variables for an Amplify app. |
customRules[] |
Array | No |
The custom redirect and rewrite rules for an Amplify app. |
customRules[].source |
String | Yes |
The source pattern for a URL rewrite or redirect rule. |
customRules[].target |
String | Yes |
The target pattern for a URL rewrite or redirect rule. |
customRules[].condition |
String | No |
The condition for a URL rewrite or redirect rule, such as a country code. |
customRules[].status |
String | No |
The status code for a URL rewrite or redirect rule.
|
enableAutoBranchCreation |
Boolean | No |
Enables automated branch creation for an Amplify app. |
name |
String | No |
The name for an Amplify app. |
enableBasicAuth |
Boolean | No |
Enables basic authorization for an Amplify app. |
accessToken |
String | No |
The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored. Use You must specify either Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide . |
platform |
String | No |
The platform for the Amplify app. For a static app, set the platform type to Valid values:
|
enableBranchAutoBuild |
Boolean | No |
Enables branch auto-building for an Amplify app. |
repository |
String | No |
The name of the repository for an Amplify app |
oauthToken |
String | No |
The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored. Use To authorize access to GitHub as your repository provider, use You must specify either Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide . |
basicAuthCredentials |
String | No |
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.