set the uri id in the request data

Otherwise, if the id is not in the request data - an insert is
performed, not an update