'How to set a confluence metadata value in Python?

I am trying to set/update a metadata value using a Python script, but I don't know how to access that specific field. For e.g. I have this Confluence page and I would like to change the metadatafield.projectname value: image here

Is there any possible way to access it in Python using the REST API?

Thank you :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source