conditional PUT for docs

cbugg: [bug-305](bug-305)