Regarding API to enable and edit Cluster Monitoring

I am trying to Enable Monitoring and edit the monitoring fields using API’s.
API for enabling Monitoring is present, But API for modifying Monitoring fields like “Data Retention” etc, is not present.
Can you please assist me in providing the required details.