Hi,
Everything that happens through the UI happens via an API, so yes, there’s an API for this, although it may not be marked ‘external’. If it’s not, then it’s subject to change without warning (although for this particular one you’re likely to be pretty safe.)
The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.
You may also find this guide helpful.
OTOH, you shouldn’t have to keep resetting this, so I’m going to refer this internally.
Ann