task put/patch, with request validation