set insuranceId or datasetId based on type. valid actions only overwrite or append