Schema error - Data API V2

Hi.

I’m trying to upload products using the Data API V2 and following the official docs from Webflow Data API V2, but whenever I send the “categories” field I get the error stated below on my app and it also happens using the test payload from the API Docs directly, any way to fix this?

I know I can create the product and then update it, I think that will allow me to update the category, but that might be a bit annoying to do.

Also, and regarding the same Data API V2, is there any way to send custom fields on the payload? Same as before, right now the way to do this is by updating a product, but it would be great if the product could be created sending the custom fields on the payload as well.

[!] Failed on row 1: 400, {'message': 'Validation Error', 'code': 'validation_error', 'externalReference': None, 'details': [{'param': 'categories', 'description': 'Field not described in schema: undefined'}]}

Thanks for the help!

Just did some testing based on the response that I get using the GET Products get request, and noticed that the categories field name is “category” and not “categories” as stated on the POST Products & SKU section, so I think it should be fixed to avoid confusions.

Also, seems like sending custom fields is supported as long as the object name matches an existing property, which I also think should be stated on the Docs as it’s a useful feature that is not yet implemented with the “Import CSV” option inside Webflow.

Hope this helps someone out there!

Hey @AIOCesar really appreciate the flag on this! We’ll look to get this fixed up ASAP.

Thanks for highlighting this Caesar. The issue with the “Category” field in the docs is is now fixed.