Register Participants V2

Method registers participants for a test and returns identifiers that can be used to start the test.

Request Information

Scheme

POST https://api.startexam.com/v2/participants

URI Parameters

None

Body Parameters

Json.

  • center - center unique name. The value can be retrieved from the center details page.
  • validFrom - session link activation time, UTC, ISO 8601.
  • validTill - session link expiration time, UTC, ISO 8601.
  • proctoring - enable proctoring (applicable only for accounts with enabled proctoring)
  • tests - from 1 to 10 test identifiers, Guid.
  • participants - from 1 to 1000 participants to register. Each participant must contain a set of name-value pairs with personal data. Field names and validation rules can be found and changed in test settings.

Request Example

POST https://api.startexam.com/v2/participants HTTP/1.1
Host: api.startexam.com
Accept: application/json; charset=utf-8
Authorization: SharedKey 99:f52JP7GQd0xqrBzMO1NWTNVGzLENymgdUXu/Ie++NX4=
Content-Type: application/json; charset=utf-8
Content-Length: 974
Date: Mon, 21 Oct 2019 08:14:08 GMT

{
  "center": "mycenter",
  "validFrom": "2019-10-21T00:00:00Z",
  "validTill": "2019-10-31T23:59:59Z",
  "proctoring": false,
  "tests": [
    "17438dc8-88d4-4404-9324-744a80700a4d"
  ],
  "participants": [
    {
      "data": [
        {
          "name": "First Name",
          "value": "John"
        },
        {
          "name": "Last Name",
          "value": "Lennon"
        },
        {
          "name": "Email",
          "value": "lennon@gmail.com"
        },
        {
          "name": "My Custom Field Name",
          "value": "000000001"
        }
      ]
    },
    {
      "data": [
        {
          "name": "First Name",
          "value": "Paul"
        },
        {
          "name": "Last Name",
          "value": "McCartney"
        },
        {
          "name": "Email",
          "value": "paulmccartney@outlook.com"
        },
        {
          "name": "My Custom Field Name",
          "value": "000000002"
        }
      ]
    }
  ]
}

Date and Authorization headers are constructed in the standard way.

Value of participant data with type Image must be sent in base64 data URI scheme format.
Supported image types: image/jpeg, image/png, image/gif. Well formatted value example (red dot png image):

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==

Response Information

HTTP status code

200 OK, 400 Bad Request, etc. according the response processing guide.

Content-Type

Json.

Content

Identifiers of registered participants.

Use the URL mask below to construct a unique link for participant and redirect him to his exam:

https://go.startexam.com/{center}#participant/{id}

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 121

{
  "participantIds": [
    "f7bdc141-5f64-47c5-8efa-aacbb4c2ec36",
    "22097b82-5f4f-473f-9911-c4fa5a00cff4"
  ]
}

To redirect the first participant (John Lennon) to the assessment you can use URL:

https://go.startexam.com/mycenter#participant/f7bdc141-5f64-47c5-8efa-aacbb4c2ec36

Try Method