On my Sharepoint Online I have some content types in a content type hub.
I create a modern team site (a site collection in fact) and I want those content types from the content type hub to be available for this team site creation right after its creation.
I know there's a timer job that updates the site collections but it's way too slow.
My users want this newly created team site to be operational immediately after it's been created.
So, I see two resolutions for this problem:
Run the timer job manually(EDIT: not available in Sharepoint Online)
- Manually add content types I need by code
Since the first of these solutions is not an option in Sharepoint Online, how can I add the content types I need to the site collection myself?