Skip to content

Update Method Response

apigateway_update_method_response R Documentation

Updates an existing MethodResponse resource

Description

Updates an existing MethodResponse resource.

Usage

apigateway_update_method_response(restApiId, resourceId, httpMethod,
  statusCode, patchOperations)

Arguments

restApiId

[required] The string identifier of the associated RestApi.

resourceId

[required] The Resource identifier for the MethodResponse resource.

httpMethod

[required] The HTTP verb of the Method resource.

statusCode

[required] The status code for the MethodResponse resource.

patchOperations

For more information about supported patch operations, see Patch Operations.

Value

A list with the following syntax:

list(
  statusCode = "string",
  responseParameters = list(
    TRUE|FALSE
  ),
  responseModels = list(
    "string"
  )
)

Request syntax

svc$update_method_response(
  restApiId = "string",
  resourceId = "string",
  httpMethod = "string",
  statusCode = "string",
  patchOperations = list(
    list(
      op = "add"|"remove"|"replace"|"move"|"copy"|"test",
      path = "string",
      value = "string",
      from = "string"
    )
  )
)