Dotnet

var content = repository.CreateContent("/Root/Content", "DocumentLibrary", "My Documents");
await content.SaveAsync(cancel);