{"id":16548674,"date":"2023-03-10T20:17:24","date_gmt":"2023-03-10T20:17:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/i-have-a-problem-with-the-api\/"},"modified":"2023-03-10T20:17:24","modified_gmt":"2023-03-10T20:17:24","slug":"i-have-a-problem-with-the-api","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/i-have-a-problem-with-the-api\/","title":{"rendered":"I have a problem with the API"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello, I have a problem with the API. When I send a GET request I get a list of posts. And when I try to add a post through a POST request, I get a 400 error. What am I doing wrong, how do I add a post?https:\/\/stackblitz.com\/edit\/js-6gaeut?file=index.js<\/p>\n","protected":false},"template":"","class_list":["post-16548674","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16548674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16548674\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16548674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}