Python script fails POSTing some data.
-
Dear All,
I’m having hard time figuring why I’m getting back this error after making a POST:{"code":"cant_update_item","message":"Cannot update item","data":{"status":500}}
the data that I’m posting is this one:
post = { 'allega_file' : { '_file' : [232] } }
where ‘allega_file’ is an ACF that contains a repeater field ‘_file’ where the id of the file is attached.
I thought was an Authorization error but, after producing one of those I saw that the feedback it’s completely different.
I took the reference on how structuring the repeater JSON from this POST
https://www.ads-software.com/support/topic/cant-update-acfs-using-json/do you guys know where I’m doing it wrong?
I’m attaching here the simple script that I’m using to test the ACF.
(https://i.imgur.com/i1b1Xdx.png)To authenticate I’m using this WordPress plugin
https://it.www.ads-software.com/plugins/application-passwords/thankyou
- The topic ‘Python script fails POSTing some data.’ is closed to new replies.