Skip to content

When creating one CMS item, an error is thrown referencing items #301

@cfjedimaster

Description

@cfjedimaster

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": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions