contentful-management.py icon indicating copy to clipboard operation
contentful-management.py copied to clipboard

Updating tags doesn't work

Open kyle-kc opened this issue 1 year ago • 1 comments

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.

kyle-kc avatar Jan 31 '24 22:01 kyle-kc

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

rubydog avatar Feb 28 '24 13:02 rubydog