Fix issue with 414 error when posting to create a document