# Insomnia: POST

Before you build the POST action, write the requests that add a category in Insomnia, each with a JSON body, send them, and learn why the answer today is 405 Method Not Allowed instead of 404.

![Cheat sheet: Insomnia: POST. Before you build the POST action, write the requests that add a category in Insomnia, each with a JSON body, send them, and learn why the answer today is 405 Method Not Allowed instead of 404.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/77295a6106f945a7990c1022b3567b76.webp)

- Category: ASP.NET Core
- Level: Journeyman
- Tags: aspnet-core, Content-Type, Location Header, Request Body (rest-api), rest-api
- Updated: November 14, 2026

Source: https://www.ask-codey.com/cheat-sheets/web-apis-with-controllers-insomnia-post-cheat-sheet
