Skip to main content

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

PathJSON TypeFormatDescription
idstringVersion 4 UUIDThe tag ID
namestringThe tag name
usagenumberUnsigned integerNumber of times the tag is used within the workspace
{
"id" : "65a11f86-9876-4f0e-94a7-2a3952048650",
"name" : "fantastic",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/tags/65a11f86-9876-4f0e-94a7-2a3952048650"
},
"search" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/search?q=tag:fantastic"
}
}
}

Requests

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
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/tags' -i -X GET

Response

200 OK

Tag collection with HAL links.

{
"_embedded" : {
"tags" : [ {
"id" : "3921f12e-fd4b-4632-8c7e-57dacd5411ed",
"name" : "postgres",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/tags/3921f12e-fd4b-4632-8c7e-57dacd5411ed"
},
"search" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/search?q=tag:postgres"
}
}
}, {
"id" : "65a11f86-9876-4f0e-94a7-2a3952048650",
"name" : "fantastic",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/tags/65a11f86-9876-4f0e-94a7-2a3952048650"
},
"search" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/search?q=tag:fantastic"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/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
Examples
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/tags/65a11f86-9876-4f0e-94a7-2a3952048650' -i -X GET

Response

200 OK

Tag with HAL links.

{
"id" : "65a11f86-9876-4f0e-94a7-2a3952048650",
"name" : "fantastic",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/tags/65a11f86-9876-4f0e-94a7-2a3952048650"
},
"search" : {
"href" : "https://app.matatika.com/api/workspaces/0acf4c66-1218-480f-849f-17ce2a40bd7a/search?q=tag:fantastic"
}
}
}

See Also