Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Tags

Tags are hash-prefixed keywords or phrases that appear in the title, description, or comments of a dataset. Tags can be used to index datasets by their contained tags with a search, which allows for topical dataset categorisation.


Objects

Tag

Path JSON Type Format Description
id string Version 4 UUID The tag ID
name string   The tag name
usage number Unsigned integer Number of times the tag is used within the workspace
{
  "id" : "d3fe68cf-2adb-4688-8660-fea4ed4792d2",
  "name" : "fantastic",
  "usage" : 1,
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags/d3fe68cf-2adb-4688-8660-fea4ed4792d2"
    },
    "search" : {
      "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/search?q=tag:fantastic"
    }
  }
}

Requests

See Also


View all tags in a workspace

GET

/api/workspaces/{workspace-id}/tags

Returns all tags in the workspace {workspace-id}.

Prerequisites

  • Workspace {workspace-id} must exist

Request

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags' -i -X GET \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json'

Python (requests)

import requests

url = "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("GET", url, headers=headers)

print(response.text.encode('utf8'))

Response

200 OK

Tag collection with HAL links.

{
  "_embedded" : {
    "tags" : [ {
      "id" : "13f9d060-4fe0-4dc7-bc1e-6c64491f79dc",
      "name" : "postgres",
      "usage" : 1,
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags/13f9d060-4fe0-4dc7-bc1e-6c64491f79dc"
        },
        "search" : {
          "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/search?q=tag:postgres"
        }
      }
    }, {
      "id" : "d3fe68cf-2adb-4688-8660-fea4ed4792d2",
      "name" : "fantastic",
      "usage" : 1,
      "_links" : {
        "self" : {
          "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags/d3fe68cf-2adb-4688-8660-fea4ed4792d2"
        },
        "search" : {
          "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/search?q=tag:fantastic"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags"
    }
  }
}

View all tags in the news for a workspace

GET

/api/workspaces/{workspace-id}/news/tags

Returns all tags in the news for the workspace {workspace-id}.

Prerequisites

  • Workspace {workspace-id} must exist

Response

200 OK

Tag collection with HAL links.


View a tag in a workspace

GET

/api/workspaces/{workspace-id}/tags/{tag-id}

Returns the tag {tag-id} in the workspace {workspace-id}.

Prerequisites

  • Workspace {workspace-id} must exist
  • Tag {tag-id} must exist

Request

Example Snippets

cURL

curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags/d3fe68cf-2adb-4688-8660-fea4ed4792d2' -i -X GET \
    -H 'Accept: application/json, application/javascript, text/javascript, text/json'

Python (requests)

import requests

url = "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags/d3fe68cf-2adb-4688-8660-fea4ed4792d2"

headers = {
  'Authorization': ACCESS_TOKEN
}

response = requests.request("GET", url, headers=headers)

print(response.text.encode('utf8'))

Response

200 OK

Tag with HAL links.

{
  "id" : "d3fe68cf-2adb-4688-8660-fea4ed4792d2",
  "name" : "fantastic",
  "usage" : 1,
  "_links" : {
    "self" : {
      "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/tags/d3fe68cf-2adb-4688-8660-fea4ed4792d2"
    },
    "search" : {
      "href" : "https://app.matatika.com/api/workspaces/7df847c0-9c79-4233-ad4b-1ddd9dd4ea3d/search?q=tag:fantastic"
    }
  }
}