Using proper createDocument method for POST.