Skip to content

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

@YashSinghMk

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.

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