Item OAPI

An item is a page that appears in a test. Items may be scored questions (for example, Multiple Choice items), non-scored surveys (for example, Likert items), basic pages (for example, Introduction, Information, and Finish Pages), or item sets.

The Item OAPI resource can be used to list, retrieve, create, and delete scored question items. Essay items can be updated. If item language variants are enabled, you can also use the Item OAPI to list, retrieve, and create item language variants.

To learn more about items, see the Item Authoring section of the Surpass documentation.

This article explains what calls can be made to the Surpass OAPI using the Item resource.

Import this API into your Postman Workspace

In This Article

Listing items

get /oapi/Item

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

Listing item versions

get /oapi/Item/versions/{id}

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

IMPORTANT: Version Compare must be enabled on your Surpass instance for this endpoint to work. If you would like Version Compare enabled on your Surpass instance, speak to your Surpass Account Manager.

Retrieving item information

get /oapi/Item/{id}

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

If item language variants are enabled, you can also use the Item OAPI to retrieve specific item language variant information by passing a languageCode path parameter in a request’s header.

Creating an item

The Item OAPI resource can be used to create Either/Or, Multiple Choice, Multiple Response, and Essay question items.

If item language variants are enabled, you can also use the Item OAPI to create specific item language variants of an item by passing a LanguageVariant path parameter in a request’s header.

Creating a Multiple Choice question

post /oapi/Item/MCQ

Send a request to the endpoint to create a Multiple Choice question.

Creating a Multiple Response question

post /oapi/Item/MRQ

Send a request to the endpoint to create a Multiple Response question.

Creating an Either/Or question

post /oapi/Item/EitherOr

Send a request to the endpoint to create an Either/Or question.

Creating an Essay question

post /oapi/Item/Essay

Send a request to the endpoint to create an Essay question.

Updating an Essay question

put /oapi/Item/Essay/{id}

Send a request to the endpoint to update a specific Essay question. The item’s name, tags, and enemy relationships can be updated using this endpoint.

IMPORTANT: Properties other than the item’s name, tags, and enemy relationships may be passed in the request body and return a 200 HTTP status code, but these changes will not take effect.

Deleting an item

delete /oapi/Item/{id}

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

IMPORTANT: Items at any workflow status can be deleted using this API. If the item is not already in the subject’s recycle bin, the first request moves the item into the subject’s recycle bin (the permanentlyDeleted property is false) and then the second request permanently deletes the item (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 how to get started with the Surpass OAPI or more about similar APIs:

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