Import participants
Create participants or update existing participants and their demographics in an existing RedJade event. The import has three steps: upload the participant list, review the parsed data, and apply it to the event.
To create or update one participant in a single request, see Create or update a participant.
To send responses already collected by another application, see Send questionnaire responses.
Prepare the event
Section titled “Prepare the event”Create the test and event in RedJade. In the event wizard’s Location step, enter your own event reference in External ID, for example community-tasting. Send that same value as external_event_id. RedJade matches it within your company; this field does not take the numeric RedJade event ID.
The upload document has two required fields:
| Field | Required | Purpose |
|---|---|---|
external_event_id |
Yes | The event reference you entered in External ID |
participants |
Yes | Array of participant entries |
Participant fields
Section titled “Participant fields”Each person’s external_id is a separate reference from the event’s External ID. Keep it stable across imports so RedJade can match the same person. The importer can also match by email; the review step shows the match it found.
| Field | Required | Purpose |
|---|---|---|
external_id |
One of external_id, email, or name |
Your system’s participant reference, reused on later imports |
name |
One of external_id, email, or name |
Display name; a name alone does not enable identity matching |
email |
One of external_id, email, or name |
Valid email address; also used for identity matching |
locale |
No | Participant language, such as en_US |
note |
No | Participant note |
demographics |
No | Array of category and demographic names |
Each demographic entry uses demographic_category_name and demographic_name. Set exclusive: true for a category where participants have one value.
Upload the participant list
Section titled “Upload the participant list”Save this example as participants.json with your event and participant details:
{ "external_event_id": "community-tasting", "participants": [ { "external_id": "member-17", "name": "Example participant", "email": "participant@example.com", "locale": "en_US", "demographics": [ { "demographic_category_name": "Favorite snack", "demographic_name": "Cookies", "exclusive": false } ] } ]}curl --fail-with-body --request POST \ 'https://app.redjade.net/api/v1/participant_imports' \ --header "Authorization: Bearer $REDJADE_TOKEN" \ --header 'Content-Type: application/json' \ --data-binary @participants.jsonSave response.id as the import ID. The uploaded list is staged for review. Participants are added when you apply the import.
Review the import
Section titled “Review the import”Set IMPORT_ID to the ID returned by the upload:
IMPORT_ID=123curl --fail-with-body \ "https://app.redjade.net/api/v1/participant_imports/$IMPORT_ID/parser" \ --header "Authorization: Bearer $REDJADE_TOKEN"Read the entries in response.participants:
| Field | What to check |
|---|---|
row_number |
Position in the uploaded list, starting at 1 |
participant_id |
Existing participant matched to this entry; absent when no match was found |
match_field |
Identity field used for the match, such as external_id or email |
invalid_fields |
Fields that failed parsing or validation; an empty array means no field errors |
demographics |
Supplied names with demographic_category_id and demographic_id where existing records matched |
Confirm matches before applying, especially when an entry supplies both email and external ID. Correct invalid entries or unexpected matches in your source payload and upload the corrected list for review.
Apply the import
Section titled “Apply the import”This request adds participants and creates missing demographic categories. Both deletion options are disabled:
curl --fail-with-body --request POST \ 'https://app.redjade.net/api/v1/participant_import_actions' \ --header "Authorization: Bearer $REDJADE_TOKEN" \ --header 'Content-Type: application/json' \ --data "{\"participant_import_id\":$IMPORT_ID,\"save_missing_categories\":true,\"only_demographics\":false,\"destroy_existing_demographics\":false,\"destroy_unmatched_participants\":false,\"skip_invalid\":false,\"skip_duplicate_identity_matches\":false}"Save the action’s response.id. This is a different ID from the import ID.
Import options
Section titled “Import options”| Action option | Effect when true |
|---|---|
save_missing_categories |
Create demographic categories that do not already exist |
only_demographics |
Update demographics for identity matches without creating new participants |
destroy_existing_demographics |
Remove existing demographics for matched participants before applying the supplied ones |
destroy_unmatched_participants |
Remove unmatched event participants who have not signed in |
skip_invalid |
Skip invalid participant entries |
skip_duplicate_identity_matches |
Skip duplicate identities after the first matched entry |
Set these options on the apply request. Keep both destroy_ options false to preserve existing participants and demographics.
Check the result
Section titled “Check the result”Set ACTION_ID to the action ID and poll this request every few seconds, with a timeout in your application:
ACTION_ID=456curl --fail-with-body \ "https://app.redjade.net/api/v1/participant_import_actions/$ACTION_ID" \ --header "Authorization: Bearer $REDJADE_TOKEN"The pending and started statuses indicate work in progress. Stop polling at completed or failed. A successful response includes these fields, among others:
{ "response": { "id": 456, "participant_import_id": 123, "status": "completed", "success_count": 1 }}Compare response.success_count with the number of entries you intended to apply. It counts processed entries, including matched participants, rather than only newly created people. Review the parser and import details if the action fails.