This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Get or Set a Tag Value on SystemLink Using the HTTP API on Swagger UI

Updated May 25, 2023

Environment

Software

  • SystemLink
  • SystemLink Server 2020 R3
  • SystemLink Server
  • SystemLink TDM DataFinder Module

Other

  • Swagger

Many operations on SystemLink Web Application can be controlled from external applications by using HTTP API. This article demonstrates how to get or set a Tag value by use of HTTP API on Swagger UI.

Creating a Tag

Firstly, log in to the SystemLink Web Application and open Tag Viewer on Data Visualization. Then, create a tag. In this example, a tag named test is created.

Double-click the created Tag, enter an arbitrary number in the Value field, and save it.
Select the HTTP API from the question mark in the upper right corner of the Tag Viewer.

Getting a Tag Value


On the Swagger UI page for SystemLink Tag Service,  go to the section for GET/v2/tags/{path}/values/current command.
 

You can test this HTTP API by clicking Try it Out. To get the value of the Tag named "test" created in this example earlier, set as follows and execute.



If the HTTP API is executed normally, Code 200 for Response body and Response headers will be returned as described above.



Setting a Tag Value

On the Swagger UI page for SystemLink Tag Service,  go to the section for PUT/v2/tags/{path}/values/current command.

Update tag API.PNG

You can test this HTTP API by clicking Try it Out. To get the value of the Tag named "test" created in this example earlier, set as follows and execute.

Test update.PNG
Test update 2.PNG

If the HTTP API is executed normally, Code 202 for Response body and Response headers will be returned as described above.

Note: The Swagger UI HTTP API will only get or set Tags that reside in the Default Workspace. For Tags in other Workspaces, refer to Finding a SystemLink Workspace ID.