1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
The issue is likely due to the DELETE method having a body, which is not allowed in API Gateway. Try removing the body from the DELETE method or changing the method to a POST or PUT, which allow bodies. This should resolve the 400 Bad Request error.
Additionally, you can check the API Gateway settings to ensure that the DELETE method is configured correctly and allows bodies. If the issue persists,
https://apidog.com/articles/http-delete-request-body/#sending-delete-request-with-body
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 2 years ago

Hi Kranthi, thanks for your reply.
However the issue only happens for cloudwatch synthetics canary for the API. The API GATEWAY has no problem with the DELETE method with a request body. Also testing the API via postman or via curl is successful.