coded PUT document. Not tested yet, need to code the view first