Is there a way through writing code to make changes to the SharePoint Online tenant-level search schema? My goal is to add managed properties and edit existing managed properties to map crawled properties and add aliases.
I am aware of the Microsoft.SharePoint.Client.Search.Portability class and its ability to export and import search configuration however it doesn't meet my needs as it can only import to the site collection and site scopes and not to the tenant search service. As well I have a requirement to run this code in different tenants where the search schema may differ and so I prefer a programmable solution over an import so as to handle these differences.
At this point I am open to any programmable method. CSOM, REST, SharePoint App, SPFx, or anything else.