View a markdown version of this page

UpdateMethod - Amazon API Gateway

UpdateMethod

Updates an existing Method resource.

Request Syntax

PATCH /restapis/restapi_id/resources/resource_id/methods/http_method HTTP/1.1 Content-type: application/json { "patchOperations": [ { "from": "string", "op": "string", "path": "string", "value": "string" } ] }

URI Request Parameters

The request uses the following URI parameters.

http_method

The HTTP verb of the Method resource.

Required: Yes

resource_id

The Resource identifier for the Method resource.

Required: Yes

restapi_id

The string identifier of the associated RestApi.

Required: Yes

Request Body

The request accepts the following data in JSON format.

patchOperations

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

Type: Array of PatchOperation objects

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "apiKeyRequired": boolean, "authorizationScopes": [ "string" ], "authorizationType": "string", "authorizerId": "string", "httpMethod": "