Skip to content

Create or update a participant

Send what you already know about a person before they take a RedJade survey, so screening and quotas can use it. The first request creates the participant in the test. Later requests with the same key update that participant.

To send many participants at once to an existing event, use Import participants.

POST /api/v1/tests/{test_key}/participants

You need the key of an existing test. A test built in RedJade normally uses its RedJade ID as its key. A responses request can create a test.

Field Type Required Meaning
test_key (path) string Yes An existing test in your company
context.event.key string When the test has more than one event The event the participant joins
participant.key string Yes Your ID for the person
participant.name string No Display name. Leaving it out keeps the current name.
participant.code string No A participant code to assign or match
participant.demographics.values array No The participant’s options in each category

This document describes one participant: a key you choose (member-17) and their demographics, here gender and age.

participant.json
{
"participant": {
"key": "member-17",
"demographics": {
"values": [
{
"category_key": "Gender",
"value": [
"Female"
]
},
{
"category_key": "Age (1/1/26)",
"value": [
38
]
}
]
}
}
}

Gender and Female match the category and option by name. The number 38 selects the age option whose range contains it. You can send keys in place of names; see Send demographics.

Save it as participant.json and post it to the test. The test’s key goes in the URL, 48213 in this example:

Terminal window
curl --fail-with-body --request POST \
'https://app.redjade.net/api/v1/tests/48213/participants' \
--header "Authorization: Bearer $REDJADE_TOKEN" \
--header 'Content-Type: application/json' \
--data-binary @participant.json

RedJade returns HTTP 201 for a new participant:

{
"status": "created",
"context": { "test": { "key": "48213" } },
"participant": { "key": "member-17", "code": "1001" }
}
Field Type Meaning
status string created for a new participant or updated for an existing one
context.test.key string The test that holds the participant
participant.key string The participant’s key for subsequent requests
participant.code string The participant’s assigned code

Send another POST to the same URL with the same participant.key:

participant-update.json
{
"participant": {
"key": "member-17",
"demographics": {
"values": [
{
"category_key": "Interests",
"value": [
"Baking",
"Grilling"
]
}
]
}
}
}

RedJade returns HTTP 200 with status: "updated". The participant now has Gender, Age, and Interests.

You send Effect
A category with a list Replaces the participant’s options in that category
A category with [] Clears that category
No entry for a category Leaves that category as it is

To add one option to a category that allows several, send the complete list you want the participant to have.

An unknown category or option returns 422 and lists the values the category accepts. To see every category and option for a participant, read the participant.

A request is saved completely or not at all. An invalid first request creates no participant.

Status Cause
404 The test does not exist or belongs to another company
409 participant.key and participant.code belong to different participants
422 A category or option is unknown, or an exclusive category has more than one item

Use the same value as participant.key for external_id on the participant’s survey link. RedJade matches the person who opens the link to the participant you created, with the demographics you sent. The link comes from the test’s event in RedJade; no endpoint returns it. See Third-party panels for the link format.

Creating a participant does not send an invitation, run screening, or place the participant in a group.

Demographics apply to this test only. Updating a participant who has already been screened does not screen them again.

Sending responses to the same test with a new participant.key also creates the participant. Either request can come first.