Skip to main content

Search Tags

Substring search over tag names. Use this to power a type-ahead, or to find the variants of a tag you are about to merge.

Request​

GET ~/api/tags/command/search?term=<term>
ParameterInRequiredDescription
termqueryyesSubstring to match against tag names.
Request
curl "https://{host}/{instance}/api/tags/command/search?term=Test" \
-H "Authorization: Bearer <access-token>" \
-H "Accept: application/json"

Response​

A flat JSON array of matching tag strings — no counts. If you need usage information for a match, follow up with query a tag.

200 OK
[
"Automated SQL UnitTests",
"ProductPlanning Regression Tests",
"RegressionTestDetails",
"RegressionTests",
"Testboard",
"TestSetDetails"
]

Note that the match is a substring match anywhere in the name, not a prefix match: Testboard and RegressionTestDetails both matched Test.

Notes​

  • Matching is case-insensitive.
  • An empty result set is returned as [], not a 404.
  • Despite living under the /command/ path segment alongside merge and remove, search is a read-only GET and requires no special privilege.