You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I include the X-Contentful-Version header using the Python client?
entry_id = id
entry = management_client.entries(space_id, environment_id).create(entry_id, {
'content_type_id': experiment_content_id,
'fields': {
'contentMarkdown': {
'de': body
}
}
})
Without this header, I get the error:
contentful_management.errors.VersionMismatchError: HTTP status code: 409
Message: Version mismatch error. The version you specified was incorrect. This may be due to someone else editing the content.
The text was updated successfully, but these errors were encountered:
@Ryanauger95 are you facing this issue with Contentful Delivery or Contentful Management library? Either way you can configure target version of the Contentful API by setting api_version on client as mentioned here.
How can I include the X-Contentful-Version header using the Python client?
Without this header, I get the error:
contentful_management.errors.VersionMismatchError: HTTP status code: 409
Message: Version mismatch error. The version you specified was incorrect. This may be due to someone else editing the content.
The text was updated successfully, but these errors were encountered: