Enroll members Coming soon
POST/v1/challenges/{id}/enrollments
Enrolls up to 500 members in a live challenge, without them tapping join. Use it to put a segment from your own tools into a challenge. Members already enrolled are skipped.
Permissions: Secret key with challenges:write.
Guide
ChallengesRequest headers#
Idempotency-KeystringRequiredRequired on this endpoint. Any string up to 255 characters; use a UUID v4. Missing returns400 idempotency_key_required.Max Length 255
Path parameters#
idstring (uuid)Required
Request body#
member_idsarray of string (uuid)Required1 to 500 member ids.Max Items 500
reason is already_enrolled, member_not_found or member_deleted.
Response fields#
Returns 200 with EnrollmentResult
enrolledintegerskippedarray of SkippedShow attributesSkipped
member_idstring (uuid)reasonstring
Error descriptions#
400Bad request
idempotency_key_required
The header is missing.
400Bad request
invalid_param
More than 500 member_ids.
409Conflict
invalid_state
The challenge isn't live.
422Unprocessable
challenge_not_joinable
The challenge has used its budget.
Any endpoint can also return the common errors.