I dont' think you can at this point.
You can deny acces to the a specific api(or restrict it), then the documentation is not shown see: https://docs.mendix.com/howtogeneral/bestpractices/best-practices-security-and-improvements-for-mendix-applications#4-apply-access-restrictions-to-unnecessary-request-handlers
Part 4 about Apply Access Restrictions to Unnecessary Request Handlers