Get/Update credentials via API

The API does give you enough options to get this working. The only thing you cannot do is getting actual Credential values, as this is a bit of a security risk.

Also the enterprise license allows you to store credentials in an external secrets manager.
Keep in mind that for your usecase you will need a license. (no idea if you have one of course)