CustomReportGeneration API

In Surpass, the Custom Reports (beta) screen is where proficient HTML writers can create custom reports for individual candidates based on test result data.

Custom reports can be generated from custom report templates in the Custom Reports (beta) screen or by using the CustomReportGeneration API. For more information, read About Custom Reports (beta).

The CustomReportGeneration API resource is used to generate custom reports. The CustomReport API lets you list, retrieve, and delete custom report templates.

This article explains what calls can be made to the Surpass API using the CustomReportGeneration resource.

Import this API into your Postman Workspace

In This Article

Generating a custom report

post /api/v2/CustomReportGeneration

Send a request to the endpoint to generate a custom report. The custom report template’s unique identifiers and any candidates’ keycodes are required in the request body.

Custom report entities

Custom report entities are the database objects that can be used to display information in a custom report. Properties from these entities should be included in the custom report template’s HTML in the form of Scriban templating text. These Scriban placeholders correspond to the entity properties to indicate what information should be retrieved for the keycode(s). Read the Scriban readme for more information on how to use Scriban.

TestResult

The TestResult entity contains test result information.

Error Codes

Refer to the following table for information on error codes that may be encountered when using this resource.

Further reading

Read the following articles to learn more about similar APIs, how to get started with the Surpass API v2, and how to get the best out of this reference documentation:

NOTE: This form is to provide feedback to help improve the Surpass Help documentation only. If you need live support, contact support@surpass.com.