Creating a new Document via the API?

@mdubakov, is it safe to use @Pawel_Badenski’s suggestion to create a Document? Or will that interface be deprecated?