Import participant data in bulk

POST /participants/import

Imports a list of participants in large quantities. If a participant's email is already registered, their data will be updated. Otherwise, a new participant will be created.

application/json

Body Required

JSON object containing an array of participant data to be imported.

  • participants array[object] Required

    An array containing one or more participant data objects to be imported.

    Represents a participant's data.

    Hide participants attributes Show participants attributes object
    • email string Required

      Unique email address for the participant. Also used as the username for login.

    • name string Required

      Full name of the participant.

    • password string Required

      Password for participant login. Ensure to send a strong and secure password.

Responses

  • 201

    Participant data successfully imported or updated.

  • 400

    Invalid JSON format or the total number of participants after import will exceed the allowed limit.

  • 401

    Authorization failed. Ensure the X-Client-Key sent is valid and active.

  • 403

    Invalid or inactive client. The API key may be incorrect, expired, or your account does not have permission.

  • 422

    Validation error occurred on one or more imported participant data. Please check the format and completeness of the data.

  • 500

    An internal server error occurred. Please try again shortly or contact support.

POST /participants/import
curl \
 --request POST 'https://sandbox.indolat.com/api/v1/participants/import' \
 --header "X-Client-Key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"participants":[{"email":"participant@example.com","name":"John Doe","password":"StrongPassword123!"}]}'
Request examples
{
  "participants": [
    {
      "email": "participant@example.com",
      "name": "John Doe",
      "password": "StrongPassword123!"
    }
  ]
}