Login to Microsoft Office 365 as a tenant administrator.
On the home page of the site collection, choose MAKE WEBSITE ONLINE near the upper right corner of the page. This action also turns off the Use Remote Interfaces permission requirement.