for some reasons our data hub installation is losing its configuration and we have to push them again in order to make it work (SAP Integration > SAP Administration Configuration > Send to Datahub button). We have not found the reason why it is disappearing. In the meantime I was wondering if it is possible to programmatically push those configurations?
I think com.hybris.datahub.core.services.impl.DefaultDataHubOutboundService is responsible for this but I don't know how the call to sendToDataHub is placed.
I'm very little familiar with the SAP integration implementation, but if I'm not mistaken that configuration is pushed into a separate pool in the DataHub, where it should be present for all subsequent data processing. I think the reason it disappears is that datahub-cleanup extension is enabled and misconfigured. It cleans not only data pools but also the configuration pool. Check the datahub-cleanup related properties in the local.properties for you DH deployment.