'Initialise from the request object.
If called from the PATCH api, insert a flag for the engine code
to distinguish.'

def __init__(self, data, patch=False):

    self.data = data
    self.patch = patch
    if patch:
        self.data[rpc_api.PARAM_EXISTING] = True
