# POST

POST creates a new item from the JSON in the request body. The DAO inserts it and returns it with its new id, and the action answers 201 Created with CreatedAtAction, which also says where the new item lives. Invalid bodies get 400 automatically.

![Cheat sheet: POST](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/66ded9e8956e4fbfaacc61bec4f7a57f.webp)

- Category: ASP.NET Core
- Level: Journeyman
- Tags: aspnet-core, CreatedAtAction, Model Validation, POST, Problem Details, rest-api
- Updated: November 3, 2026

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