Hello,
I am trying to update a collection item using API. I am using PHP to do the same. However, it’s not working, what am i doing wrong? There seems to be some issue with the “fields” data. I am following the steps mentioned here - Webflow CMS API Reference
Since you can code (I usually don’t suggest this otherwise), maybe a good first step is to then just try the curl statement: Webflow API and Documentation | Webflow
If you’re wondering what those field names translate to in the Webflow CMS, create a new CMS Collection and use the pre-built “Blog Posts” collection template.
That will demonstrate how the Webflow CMS field is spelled, with casing, and how that spelling and casing changes when you need to use the API.
I am getting the same error in postman as well. As per the documentation, it’s happening because - “Request body was incorrectly formatted. Likely invalid JSON being sent up.” It seems to be happening because of how I am passing the data field. Also, is there any other way you can suggest? I am looking to update certain columns in a collection when user clicks on a button on the page
Was able to get postman to work. Also, found out that postman also has the option of seeing code snippet. Used it and was able to make the end to end flow work.