Register Program Employees

Method registers or unregisters employees for a given program.

Request Information

Scheme

POST https://api.startexam.com/v1/program/employees

URI Parameters

None

Body Parameters

Json with a RegisterProgramEmployeesQuery:

  • ProgramId - Program identifier, guid from StartExam.
  • ProgramExternalId - Program external identifier. Pass your own string ID from integrated system rather than guid from StartExam for easier integration (optional).
  • ModuleTestsScope - pass all to apply action for all tests in a program, or pass selected to apply action only for selected tests in a program.
  • ModuleTests - identifiers of specific module tests, guids from StartExam. Used only for ModuleTestsScope = selected and manual program mode.
  • RegisterEmployees - Identifiers of employees to register. One request must not contain more than 500 employees to register.
  • UnregisterEmployees - Identifiers of employees to unregister. One request must not contain more than 500 employees to unregister.

Request Example

Example 1: all scope: register / unregister for all tests at once.
Example 2: selected scope: register / unregister for specified tests.

POST https://api.startexam.com/v1/program/employees 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: 302
Date: Wed, 03 Jun 2026 17:46:20 GMT

{
  "programId": "974ca5bb-caf2-4fb6-8b72-b5ee99e6e43d",
  "programExternalId": null,
  "moduleTestsScope": "all",
  "moduleTests": null,
  "registerEmployees": [
    "10724",
    "10782",
    "10842",
    "10889",
    "10624"
  ],
  "unregisterEmployees": [
    "11946",
    "11834",
    "11611"
  ]
}
POST https://api.startexam.com/v1/program/employees 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: 341
Date: Wed, 03 Jun 2026 17:46:20 GMT

{
  "programId": "840a2fd6-fd0e-4251-b898-1c8385b4cccb",
  "programExternalId": null,
  "moduleTestsScope": "selected",
  "moduleTests": [
    "83ff548f-ddd5-427d-bb3c-792dc2832f03",
    "e7e47a5f-903d-4d5d-b673-46080ed2afe7"
  ],
  "registerEmployees": [
    "10826",
    "10605",
    "10708",
    "10988"
  ],
  "unregisterEmployees": []
}

Date and Authorization headers are constructed in the standard way.

Response Information

HTTP status code

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

Content-Type

Json.

Content

Method returns operation results:

  • EmployeesRegistered - number of new employees added to the program.
  • AttemptsRegistered - number of attempts created.
  • EmployeesUnregistered - number of employees removed from the program.
  • AttemptsUnregistered - number of attempts removed.
  • TotalEmployeesInProgram - total number of employees in the program after operation.

Response Example

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

{
  "employeesRegistered": 5,
  "attemptsRegistered": 20,
  "employeesUnregistered": 3,
  "attemptsUnregistered": 9,
  "totalEmployeesInProgram": 97
}

Try Method