Toggle Private Contributions

Simple question: Is there any API call that can automatically toggle the private contributions setting for a person’s contribution graph?

private-contributions

Thank you!