Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required key "id" on update collection item #160

Open
Paroca72 opened this issue Aug 22, 2024 · 1 comment
Open

Missing required key "id" on update collection item #160

Paroca72 opened this issue Aug 22, 2024 · 1 comment

Comments

@Paroca72
Copy link

Hello,

If I try to update a collection item using webflow.collections.items.updateItem I got an error.
Error: Missing required key "id"

But both the collection id and the item id passed to the function are correct.

await webflow.collections.items.updateItem(this.collection.id, id, {
            fieldData: data,
        });

Thanks

@zplata
Copy link
Contributor

zplata commented Aug 26, 2024

Hey @Paroca72 - thanks for raising this! We'll take a look at fixing this; in the meantime, if you set the id again in your

{
  id: id,
  fieldData: data,
}

payload, that should in the short-term hopefully allow the request to go through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants