{"id":10390100,"date":"2018-06-12T08:05:44","date_gmt":"2018-06-12T08:05:44","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/python-script-fails-posting-some-data\/"},"modified":"2018-06-12T08:18:30","modified_gmt":"2018-06-12T08:18:30","slug":"python-script-fails-posting-some-data","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/python-script-fails-posting-some-data\/","title":{"rendered":"Python script fails POSTing some data."},"content":{"rendered":"<p>Dear All,<br \/>\nI&#8217;m having hard time figuring why I&#8217;m getting back this error after making a POST: <\/p>\n<p><code>{&quot;code&quot;:&quot;cant_update_item&quot;,&quot;message&quot;:&quot;Cannot update item&quot;,&quot;data&quot;:{&quot;status&quot;:500}}<\/code><\/p>\n<p>the data that I&#8217;m posting is this one:<\/p>\n<p><code>post = { &#039;allega_file&#039; : { &#039;_file&#039; : [232] } }<\/code><\/p>\n<p>where &#8216;allega_file&#8217; is an ACF that contains a repeater field &#8216;_file&#8217; where the id of the file is attached.<\/p>\n<p>I thought was an Authorization error but, after producing one of those I saw that the feedback it&#8217;s completely different.<br \/>\nI took the reference on how structuring the repeater JSON from this POST<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/cant-update-acfs-using-json\/<\/p>\n<p>do you guys know where I&#8217;m doing it wrong?<br \/>\nI&#8217;m attaching here the simple script that I&#8217;m using to test the ACF.<br \/>\n(https:\/\/i.imgur.com\/i1b1Xdx.png)<\/p>\n<p>To authenticate I&#8217;m using this WordPress plugin<br \/>\nhttps:\/\/it.wordpress.org\/plugins\/application-passwords\/<\/p>\n<p>thankyou<\/p>\n","protected":false},"template":"","class_list":["post-10390100","topic","type-topic","status-publish","hentry","topic-tag-acf","topic-tag-api","topic-tag-json","topic-tag-python"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10390100","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":3,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10390100\/revisions"}],"predecessor-version":[{"id":10390135,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10390100\/revisions\/10390135"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10390100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}