contentful-management.py
contentful-management.py copied to clipboard
Updating tags doesn't work
Following the exact examples from the README provides me with two different errors:
client = contentful_management.Client(CONTENTFUL_MANAGEMENT_KEY)
tags_proxy = client.tags(CONTENTFUL_SPACE_ID, CONTENTFUL_ENVIRONMENT_ID)
tag = tags_proxy.find(tag_id)
tag.update(
{
"name": "My New Tag"
}
)
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.
Request ID: fab0c6f2-0d26-453e-ac6a-000579712b2b
client = contentful_management.Client(CONTENTFUL_MANAGEMENT_KEY)
tags_proxy = client.tags(CONTENTFUL_SPACE_ID, CONTENTFUL_ENVIRONMENT_ID)
tag = tags_proxy.find(tag_id)
tag.name = "My New Tag"
tag.save()
contentful_management.errors.UnprocessableEntityError: HTTP status code: 422
Message: Validation error
Details:
* Name: required - Path: '['name']'
Request ID: 27b37eb1-3733-477e-9192-60fae826cf41
I'm unable to find a workaround for either error so I'm stuck, unable to update tags.
Hello @kyle-kc,
Apologies for the delay in response. I wanted to inform you that the feature you inquired about is still in the pipeline and has not been supported yet.
Cheers