How to Create a POST Request with Body Parameters in Flask? or Flask: How to Properly Create a POST R

20 Replies, 1060 Views

Hey! I had the same issue when I first tried flask create post request with body parameters. Turns out, you gotta make sure your Postman headers are set to `Content-Type: application/json`.

Also, try `request.get_json(force=True)` if the data isn't parsing automatically. Flask can be picky about headers sometimes.

Messages In This Thread



Users browsing this thread: 1 Guest(s)