Importing Data Using the cURL API in Ripple Science
The Import cURL API enables Site Admins and Site Managers to efficiently import data from third-party systems into the Registry or a specific study in bulk. This method allows for automated data synchronization without manually using the Ripple Import Tool.
π Key Benefits of Using the Import cURL API
β
Bulk Data Import β Load large datasets without manual intervention.
β
Automated & On-Demand β Run the command anytime to update data.
β
System Integration β Sync Ripple with external databases or CRMs.
β
Improved Data Harmonization β Keep data consistent across systems.
What You Need Before You Start
1οΈβ£ Ripple Site URL β The API endpoint for data import.
2οΈβ£ Study ID β Use the Study ID or "global"
for Registry imports.
3οΈβ£ Update Options β Define what happens to existing participants.
4οΈβ£ Authorization Key β A valid API key for authentication.
5οΈβ£ Formatted Excel File (XLSX) β Ensure data aligns with the Ripple Data Dictionary.
6οΈβ£ Import cURL Command β A properly formatted command based on your OS.
Import cURL Command Format
Mac Users
Windows Users
π Update Options for Existing Participants
Tables can't be imported directly. Please insert an image of your table which can be found here.
Option How to Write in cURL CommandStep-by-Step Instructions
1οΈβ£ Open Terminal (Mac) or Command Prompt (Windows)
- Mac Users β Open Terminal
- Windows Users β Open Command Prompt (cmd.exe)
2οΈβ£ Paste in the Import cURL Command
- Copy and paste the relevant command (Mac or Windows format).
3οΈβ£ Replace Placeholders with Actual Values
β
RippleSiteURL β Enter your Ripple API URL.
β
StudyId β Enter your Study ID or "global"
for Registry.
β
UpdateOption β Choose from "all"
, "nocontact"
, or "noexisting"
.
β
AuthorizationKey β Replace with your actual API key.
β
LocationAndNameOfExcel.xlsx β Provide the full path to your Excel file.4οΈβ£ Execute the Command
- Press Enter to start the import process.
5οΈβ£ Verify the Import in Ripple
- Log into Ripple and confirm that the data has been imported correctly.
π Example: Importing Event Completion Data
Scenario
A Study Data Analyst needs to import Event Completion Data and Custom Variables from CTMS into the Ancillary A Study in Ripple.
- All participants already exist
- Updating all participant data
Mac/Linux cURL Command
Windows cURL Command
π Notes & Best Practices
β Ensure Data is Properly Formatted
- The Excel file must match Rippleβs Data Dictionary formatting.
- Only existing fields in Ripple can be imported.
β Check Special Characters in File Paths
- Mac/Linux β Use
/Users/username/path/to/file.xlsx
- Windows β Use
C:\Users\username\path\to\file.xlsx
β Automate Importing Data
- Schedule imports using cron jobs (Mac/Linux) or Task Scheduler (Windows).
β Troubleshooting Errors
- Authentication Error? β Check if the API key is correct.
- Invalid File Path? β Ensure the file location is correct.
- Data Not Importing? β Confirm that all column names match Rippleβs Data Dictionary.