How to modifiy group access_level on a shared project using gitlab api v4?

Hello,

How to modifiy group access_level on a shared project using gitlab api v4 ? there is only POST request exposed by the API. I want to modify group access level for a shared project passing from Developer to Maintainer but I am getting 409 conflict status.