When using createItemLive, the docs show passing a body value that includes fieldData and your particular properties. So, this should work as documented:
let cmsId = await webflow.collections.items.createItemLive(GENRE_COLLECTION_ID, {
body: {
isArchived: false,
isDraft: false,
fieldData: {
name: genreName,
slug: genreName
}
}
});
But instead returned:
{
"message": "Validation Error: [\"Body should have required property 'fieldData'\",\"Body should have required property 'items'\",\"Body should match exactly one schema in oneOf\"]",
"code": "validation_error",
"externalReference": null,
"details": []
}