I am trying to send datas with post but I think the post url provided by strapi is not good. However, I have no problem to get datas with the same url. I tested it on Postman and I get this error :
{
"data": {
"title": "Hello",
"subtitle": "Lorem Ipsum is simply dummy text of the printing and typesetting industrLorem",
"slug": "slug",
"targetedRaise": "990",
"body":"Lorem Ipsum is simply dummy text of the printing and typesetting industrLorem"
}
``

I have the same issue with error 400, i can post with the data using post man but if i use node-fetch or axios throught my script i get the error. I copy past my console loged body and it work on postman, it drive crazy
Hi!, I have the same error but you can solve it change the format to send.
I used postman whit the next headers:
Content-Type | application/json
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjgzNjEyMzA0LCJleHAiOjE2ODYyMDQzMDR9.-5Q1iuUzu6CUc3X2bqdFgQQ2-KScbQWzGC3X2O
Without having the “content-type: application/json” header set in Postman, I had the same error response about having a missing “data” field (which was actually not true-- the error message simply doesn’t respond correctly if you’re missing the header).
But with the header, it worked.
I checked via the VS Code Extension “HTTP Rest Client” (which is similar to Postman), and it’s the same thing.
So, just make sure the header is set with “content-type: application/json” and you should be good to go.
e.g.: (using VS Code Extension “HTTP Rest Client” )