Skip to content

Setting version in the patch object and the header object #2607

Description

After upgrading to from 4.29.1 to 4.29.5 and specifically running a deduplication. We were getting a build error where ts was looking for the version prop that was not provided. After adding version to patch objects the build is running successfully. Are we now supposed to be setting version in the patch object and the header object? Or can we drop the header object here?

contentfulClient.entry.patch(
 {
    entryId: entry.sys.id,
    version: entry.sys.version // Do we need this...
  },
  operations,
  {
     'X-Contentful-Version': entry.sys.version // ... AND this?
   }
)

We couldn't find any updates in the docs or release notes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions