Subject API

In Surpass, a subject is where you create and manage items for use in tests. Subjects can hold folders and sub-folders of items, allowing for flexible organisation of your test content. You can also upload media to your subject’s media library for use in its items. A subject is associated with at least one centre. Any tests created in the subject can be scheduled at the associated centre(s).

The Subject API resource is used to list, retrieve, create, update, and delete subjects.

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

Import this API into your Postman Workspace

In This Article

Listing subjects

get /api/v2/Subject

Send a request to the endpoint to retrieve a list of subjects. Refer to the available parameters to influence the response. No request body is required.

Retrieving subject information

get /api/v2/Subject/{id}

Send a request to the endpoint to retrieve information for a specific subject using either its ID or reference. No request body is required.

Creating a subject

post /api/v2/Subject

Send a request to the endpoint to create a subject.

Updating a subject

put /api/v2/Subject/{id}

Send a request to the endpoint to update a specific subject.

Deleting a subject

delete /api/v2/Subject/{id}

Send a request to the endpoint to delete a specific subject. No request body is required.

IMPORTANT: Subjects can only be deleted if they contain no items and their workflow status is Archived. If a subject is deleted, anything else in the subject (for example: folders, media, tags) is also deleted.

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.