TagCollection OAPI

In Surpass, you can attach metadata (known as “tags”) to items and then use these tags to organise items when authoring content, creating tests, and viewing results. Tags are made up of “tag groups” and “tag values”.

A “tag collection” lets you categorise tag groups and tag values, which is useful for comparing data across multiple tag groups. Tag collections are subject-specific and are contained in “tag collection groups”. Read TagCollectionGroup OAPI for more information on tag collection groups.

The TagCollection OAPI resource is used to list, retrieve, create, update, and delete tag collections. You can also update individual tag values in a specified tag collection and the order of tag collections within the tag collection group.

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

Import this API into your Postman Workspace

In This Article

Listing tag collections

get /oapi/TagCollection

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

Retrieving tag collection information

get /oapi/TagCollection/GetByIdReference?id={id}

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

Creating a tag collection

post /oapi/TagCollection

Send a request to the endpoint to create a tag collection.

Creating multiple tag collections

post /oapi/TagCollection/Bulk

Send a request to the endpoint to create multiple tag collections.

Updating a tag collection

put /oapi/TagCollection?id={id}

Send a request to the endpoint to update a tag collection.

Updating multiple tag collections

put /oapi/TagCollection/Bulk

Send a request to the endpoint to update multiple tag collections. Each tag collection’s id or reference is specified in the request body.

Updating a tag value

put /oapi/TagCollection/SingleValue

Send a request to the endpoint to update a specific tag value. No request body is required; each tag collection, tag group, and the updated tag value are included in the request endpoint as query parameters.

Updating the order of tag collections

put /oapi/TagCollection/Order

Send a request to the endpoint to update the position of tag collections within the tag collection group. Tag collections are ordered from the highest to the lowest order property. Each tag collection’s id or reference is specified in the request body.

Deleting a tag collection

delete /oapi/TagCollection?id={id}

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

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.