ItemSet API

Item sets are groups of items with “friend” relationships. Items with friend relationships cannot be added to a test without their friend items. Friend items always appear next to each other in tests and can share source material and question text, making them ideal for presenting a number of items on the same theme (such as in a case study).

The ItemSet API resource is used to list, retrieve, create, update, and delete item sets.

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

Import this API into your Postman Workspace

In This Article

Listing item sets

get /api/v2/ItemSet

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

Retrieving item set information

get /api/v2/ItemSet/{id}

Send a request to the endpoint to retrieve information for a specific item set using its ID. No request body is required.

Creating an item set

post /api/v2/ItemSet

Send a request to the endpoint to create an item set.

Updating an item set

put /api/v2/ItemSet/{id}

Send a request to the endpoint to update a specific item set.

Deleting an item set

delete /api/v2/ItemSet/{id}

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

IMPORTANT: If the item set is not already in the subject’s recycle bin, the first request moves the item set into the subject’s recycle bin (the permanentlyDeleted property is false) and then the second request permanently deletes the item set (permanentlyDeleted is true).

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.