support doc param for partial update

adding doc support for updates in addition to script