Unfortunately, there's no API call for this purpose as of now.
Hello,
Thanks for contacting Cisco Meraki Technical Support.
For now, there is no API endpoint to configure this - the only configuration option is through Dashboard. At this point, there is no timeline for when it'll be launched, however, You can press the 'Give your feedback' button on the bottom right of the dashboard, which provides a convenient form that you can submit as a feature request. (More than half the dashboard features originate from this!)
I will raise a feature request on this.
Thanks @Ryan_Miles @RaphaelL