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: Thu, 02 May 2024 18:43:06 GMT

{
  "center": "mycenter",
  "validFrom": "2024-05-02T00:00:00Z",
  "validTill": "2024-05-12T23:59:59Z",
  "proctoring": false,
  "tests": [
    "19fc6008-6ea3-4350-9fd5-bf2b7b4e1279"
  ],
  "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: 116

{
  "participantIds": [
    "3d0edca8-d673-422c-a55f-d1799008ae0c",
    "f54fafdc-0f0a-46cb-b2de-4bc4e8342d83"
  ]
}

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

https://go.startexam.com/mycenter#participant/3d0edca8-d673-422c-a55f-d1799008ae0c

Try Method