lib/red_cap/client.rb in red_cap-0.10.0 vs lib/red_cap/client.rb in red_cap-0.10.1
- old
+ new
@@ -27,10 +27,10 @@
def find_record study_id
json_api_request(content: "record", records: study_id).first
end
def save_records records
- json_api_request(content: "record", data: records.to_json)
+ json_api_request(content: "record", data: records.to_json, overwriteBehavior: "overwrite")
end
def delete_records study_ids
json_api_request(content: "record", action: "delete", records: study_ids)
end