I'm desperately trying to find out how to change mapping template for integration request in POST request in API Gateway with PHP SDK v3. I've googled for hours and it seems there's no further documentation for that, nothing. The only thing is official AWS documentation for that. and it's very brief.
It seems really simple - let's call an update method, fill a new application/json response in it and we're done - but - there are available four candidate API methods for doing that: UpdateMethod, UpdateMethodResponse, UpdateIntegration, UpdateIntegrationResponse and for all of them there is the same documentation:
$result = $client->update<whatever>([
'httpMethod' => '<string>', // REQUIRED
'patchOperations' => [
[
'from' => '<string>',
'op' => 'add|remove|replace|move|copy|test',
'path' => '<string>',
'value' => '<string>',
],
// ...
],
'resourceId' => '<string>', // REQUIRED
'restApiId' => '<string>', // REQUIRED
]);
So, does anyone knows:
- Which method is suitable for doing that
- What to fill in in these four 'universal' fields
- Have anybody ever done that through v3 API?
Any help is appreciated, thanks you very much.