http://appsync.{region}.amazonaws.com/v1/apis/{apiId}Updates a <code>GraphqlApi</code> object.
The API ID.
The new name for the <code>GraphqlApi</code> object.
The Amazon CloudWatch Logs configuration.
A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.
Describes an Amazon Cognito user pool configuration.
The new authentication type for the <code>GraphqlApi</code> object.
Describes an OpenID Connect (OIDC) configuration.
A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
A list of additional authentication providers for the <code>GraphqlApi</code> API.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'http://appsync.{region}.amazonaws.com/v1/apis/{apiId}' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}http://appsync.{region}.amazonaws.com/v1/apis/{apiId}Updates a <code>GraphqlApi</code> object.
The API ID.
The new name for the <code>GraphqlApi</code> object.
The Amazon CloudWatch Logs configuration.
A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.
Describes an Amazon Cognito user pool configuration.
The new authentication type for the <code>GraphqlApi</code> object.
Describes an OpenID Connect (OIDC) configuration.
A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
A list of additional authentication providers for the <code>GraphqlApi</code> API.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}1curl --request POST \2 --url 'http://appsync.{region}.amazonaws.com/v1/apis/{apiId}' \3 --header 'accept: application/json' \4 --header 'content-type: application/json'1{2 "success": true,3 "data": {4 "id": "abc123",5 "created_at": "2025-01-01T00:00:00Z"6 }7}