Add resource hash to put method