Ingest Data.
This endpoint handles all ingestion of data into the system, including enrolments, impressions and conversions.
Participants may only be enrolled into a running experiment.
Path parameters
-
The ID of the team.
Body Required
-
The key of the experiment to enroll in.
-
The key of the variant to enroll the participant into.
-
The key of the participant to enroll. The participant will automatically be created if it does not yet exist.
-
event string
The key of the event that converted. Only required during a conversion.
-
force boolean
Whether to force the enrollment. By default, if the participant is already enrolled in the experiment, the enrollment will be ignored. Defaults to false.
POST /api/teams/{teamId}/ingest
curl \
-X POST https://checkmango.com/api/teams/10/ingest \
-H "Content-Type: application/json" \
-d '{"experiment":"CHECKOUT_CTA","variant":"CTA_RED","participant":"jbrooksuk","event":"CHECKOUT","force":true}'
Request example
{
"experiment": "CHECKOUT_CTA",
"variant": "CTA_RED",
"participant": "jbrooksuk",
"event": "CHECKOUT",
"force": true
}
Response examples (402)
{
"message": "Subscription required."
}
Response examples (403)
{
"message": "Unauthenticated."
}
Response examples (404)
{
"message": "Not Found"
}