A lookup call to get all available tags, including their ID and description. The call will allow a single ID to be given in order to limit results to the specific tag.
When accessed via a GET request this API method will return a list of all available tags.
As this method is accessed via a GET request there is no HTTP body so options can be specified via the URL.
parameter | type | description |
---|---|---|
id | int (optional) | a tag id to restrict results to |
If accessing GET /api/tag?id=1 the following JSON would be returned:
{
"data": [
{
"tag_id": 1,
"tag_code": "HD",
"tag_group_id": 1
}
]
}
A "data" element that contains an array of tags.