Hi @aleks2016,
Two things can be happening.
Your user doesn’t have permission to edit or you aren’t correctly passing the data the ACF Fields.
For more details visit the link below:
https://github.com/airesvsg/acf-to-rest-api
If you still can’t solve, you can see an example of how to send the data:
https://github.com/airesvsg/acf-to-rest-api-example
If it persists, please send me an email: [email protected]
Thanks
User has permission. I can change and create custom post, but I can’t change or create any ACF for this custom post type.
When I use /wp-json/acf/v2/{Custom Post}/{id} I got the same error for both PUT and POST actions
{
“code”: “cant_update_item”,
“message”: “Cannot update item”,
“data”: {
“status”: 500
}
}
The same error with simple post
Hi @aleks2016,
you are sending the nonce code?
Hi.
If you mean token, I use constant token.
http://prntscr.com/a0rko8
http://prntscr.com/a0rjrn
http://prntscr.com/a0rk1z
I tried to do the same in another my site and I had the same error.
Thanks for technical support