v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1451205197.1 KB

Updates a <code>Function</code> object.

post/v1/apis/{apiId}/functions/{functionId}

Path parameters

apiIdstring required

The GraphQL API ID.

functionIdstring required

The function ID.

Request body

namestring required

The <code>Function</code> name.

descriptionstring

The <code>Function</code> description.

dataSourceNamestring required

The <code>Function</code> <code>DataSource</code> name.

requestMappingTemplatestring

The <code>Function</code> request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

responseMappingTemplatestring

The <code>Function</code> request mapping template.

functionVersionstring

The <code>version</code> of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the <code>functionVersion</code> is required.

maxBatchSizeinteger

The maximum batching size for a resolver.

codestring

The <code>function</code> code that contains the request and response functions. When code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.

Response

Success