Expand the API to provide a function to toggle a domain's "userdirprotect" preference.
At the moment, WHM API 1 provides a function to check a variety of userdata settings from the command line that's pretty useful ( https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+domainuserdata )
However, each of the individual settings must be changed in their own various ways, and there's not one modify-domainuserdata API function to complement this one.
While a generalized function would be useful (and can hopefully be considered in time!), we recently wanted to update the "userdirprotect" value from the API so users could have only temporary access to those links, but found it requires modifying the files manually, rebuilding Apache's configuration, and restarting the service to take effect: https://forums.cpanel.net/threads/add-mod_userdir-exception-via-api-howto.212692/
Please consider expanding the API to enable a cPanel provided way to modify our userdirprotect settings.