Create assessment
- Command:
application_create
Invite a candidate to complete an assessment.
The Create application command has two forms: Simple Request and Extensible Request. The Extensible Request is recommended for use when the partner wishes to transfer arbitrary fields to the applicant's questionnaire (to display custom info or to get some extra info from the applicant for example). Also, all potential future extensions of functionality will be applied to the Extensible Request.
Simple create application
Create an application with basic user fields.
Request body parameters
- command
stringrequiredSet to "application_create".
- partner_api
booleanrequiredSet to true.
- position_id
integerint64requiredAny position_id returned by Get assessment types command
- language_id
stringAny supported 3-letter language code, eg. "eng". This is the initial language in which the questionnaire will be presented to the candidate, and the initial language in which the report will be displayed. Consult SMG for information about which languages are available for each assessment.
- app_email
stringIf present, an invitation email with a link to complete the questionnaire will be emailed to the candidate. (If omitted it becomes the partner's responsibility to provide the candidate with the questionnaire link.)
- app_phone
stringPhone number given as a sequence of digits without spaces or demarcations such as
()and-. If present the applicant will receive an SMS containing a link to the questionnaire.- app_url
stringIf present, will override the account-level callback url for this specific application. (See Account Config) Note that the
[___API_ID___]substitution field is required for this field.- is_test
booleanIf present and
true, assessment will be flagged as test data. Please set this option for any assessments generated when testing integration.- fail_on_dup
booleanIf present and
true, assessment creation will fail if any assessments already exist for this candidate, identified based on their email address. See Create application with duplicates forbidden
Response body JSON
- error_code
integerint64Error code
- error_text
stringError text
- command_from
stringThe command used to generate this response ("application_create")
- application_id
stringID of the created application to be used in subsequent commands
- app_link_full
stringURL of the questionnaire to be filled in by applicant
Error codes
Error code | Description |
|---|---|
905 | Invalid position ID |
1716 | Mandatory custom field value missing |
1726 | Existing assessments for candidate found (if |
Extensible create application
Create an application with custom/arbitrary user fields.
Request body parameters
- command
stringrequiredSet to "application_create".
- partner_api
booleanrequiredSet to true.
- position_id
integerint64requiredAny position_id returned by Get assessment types command
- language_id
stringAny supported 3-letter language code, eg. "eng". This is the initial language in which the questionnaire will be presented to the candidate, and the initial language in which the report will be displayed. Consult SMG for information about which languages are available for each assessment.
- fields
Array of objectArray of arbitrary name/value pairs. When making an extensible request, app_email, app_full_name, app_phone and app_url fields can be included in this array and function the same as in a simple Create application request.
Child attributes
- n
stringrequiredName of the field
- v
stringrequiredValue of the field
- is_test
booleanIf present and
true, assessment will be flagged as test data. Please set this option for any assessments generated when testing integration.- fail_on_dup
booleanIf present and
true, assessment creation will fail if any assessments already exist for this candidate, identified based on their email address. See Create application with duplicates forbidden
Response body JSON
- error_code
integerint64Error code
- error_text
stringError text
- command_from
stringThe command used to generate this response ("application_create")
- application_id
stringID of the created application to be used in subsequent commands
- app_link_full
stringURL of the questionnaire to be filled in by applicant
Error codes
Error code | Description |
|---|---|
905 | Invalid position ID |
1716 | Mandatory custom field value missing |
1726 | Existing assessments for candidate found (if |
Create application with duplicates forbidden
To prevent the creation of duplicate applications for the same candidate, supply the "fail_on_dup" parameter as true.
If no duplicate applications are found, creation proceeds normally.
If duplicate applications are found, application is not created and POP Engine responds with error code 1726 and information about the duplicate applications.
If you wish to create the new application anyway, re-submit the request without the "fail_on_dup" parameter.
Response body JSON when duplicates found
- error_code
integerint64Error code; "1726" for this response
- error_text
stringError text
- command_from
stringThe command used to generate this response ("application_create")
- duplicates
Array of objectDuplicate applications
Child attributes
- application_id
integerint64ID of assessment which was requested
- converted_from
stringID of source assessment if converted from another assessment; "0" if not a converted assessment
- account_id
stringID of this assessment's account
- position_id
stringID of assessment type
- position
stringName of assessment type
- language_id
string3-letter language code assigned to the assessment
- started
stringYYYY-MM-DDDate of invitation/assessment creation
- completed
stringYYYY-MM-DDDate assessment is completed by candidate.
- expires
stringYYYY-MM-DDPresent if status="pending". Expiry date of application; questionnaire is not completable after this date.
- fields
stringBar-separated fieldsPreset custom fields for assessment, such as candidate's name and email