Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid patch path /requestTemplates/ for AWS API Gateway Body Mapping

I am following this tutorial to set up API to dynamoDB through AWS API Gateway.

According to the instruction, was to body map to this code

{
  "TableName": "favorite_movies",
  "Key": {
    "name": {
      "S": "$input.params('name')"
    }
  }
}

However, I received this error ( Invalid patch path /requestTemplates/) May anyone help me, please. Thanks in Advance.

screenshot

like image 506
excitelybored Avatar asked Jun 17 '26 04:06

excitelybored


1 Answers

Content type needs to filled as "application/json" which is corresponding to the model specified.

Ideally, specifying model name should be enough as that has the content type as well.

like image 100
rajsekhar Avatar answered Jun 22 '26 17:06

rajsekhar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!