TagValue API

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”.

Tags are made up of categorised containers called “tag groups” that contain individual tags called “tag values”. For example, a tag group called “difficulty” might have the following tag values: “Easy”, “Medium”, and “Hard”.

The TagValue API resource is used to list, retrieve, create, and update tag values. For information on tag groups, read TagGroup API. To learn how to add tag values to items, read ItemTagValue API.

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

Import this API into your Postman Workspace

In This Article

Listing tag values

get /api/v2/TagValue

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

Retrieving tag value information

get /api/v2/TagValue/{id}

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

Creating a tag value

post /api/v2/TagValue

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

IMPORTANT: Numeric tag values cannot be created using this API. To create a numeric tag value, assign one to an item directly using the ItemTagValue API.

Updating a tag value

put /api/v2/TagValue/{id}

Send a request to the endpoint to update a specific tag value.

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.