I am using the Webflow “add collection item” API to create new records in my “artworks” collection in Webflow.
my read only link:
To better understand the Webflow API requirements I used a GET collection item cURL to better understand how Webflow structures the field names and the values with each name. I used sample data to have something to work with.
Webflow has been giving me validation errors when using the cURL “create collection item” that made NO sense saying that my field names were not in the schema. I double checked and they were, but when I used the cURL ‘GET collection item’ SOME of the field names had changed: “-2” appended to some of them. This is way out in left field.
The CMS schema:
Following the path of least resistance I changed the values I input in the create collection item cURL - appending "-2’ to match. Previously I ran into the requirement that data types are important using APIs so I did make adjustments to that too.
Reference Webflow CMS API Reference
I would anticipate the field names in the schema and the API would be the same, ALWAYS!
THEN - after I changed some of the field names adding “-2” I got this error:
This whole thing is a frigging mess. If I knew how to AVOID the errors (good documentation) I could make adjustments accordingly. But this seems very very inconsistent and unpredictable.
I’d welcome your help in resolving these issues.