Subscribe to the Taegis™ VDR Documentation RSS Feed at .

Learn more about RSS readers or RSS browser extensions.

Update Asset Tags

This article reviews how to update server tags through the REST API with the included CURL command.

First, ensure you have the necessary API credentials; start by creating a new API Client ID and use it through the built-in Swagger UI to fetch back the authentication token to use in your scripted request. For more information, see Creating Public API Clients.

You can then use curl to update asset's properties by directly calling the API with an existing authentication token.

curl -X PATCH -k "https://<INSTANCE_ID>.vdr.secureworks.com/api/v2/servers/<SERVER_ID>" \
-H "accept: application/json" -H "authorization: Bearer <YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"id": "373", "kind": "range", "tagIds": ["<TAG_ID>"], "fields": "tagIds"}'

Be sure to replace the following variables: