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" : "d63328c6-8f7c-492d-89c6-e03f6cca70fe",
"name" : "fantastic",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/tags/d63328c6-8f7c-492d-89c6-e03f6cca70fe"
},
"search" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/search?q=tag%3Afantastic"
}
}
}

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.meltano.com:443/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/tags' -i -X GET

Response

200 OK

Tag collection with HAL links.

{
"_embedded" : {
"tags" : [ {
"id" : "b1ad5566-3544-4ce8-88d8-381708b3ad3a",
"name" : "postgres",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/tags/b1ad5566-3544-4ce8-88d8-381708b3ad3a"
},
"search" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/search?q=tag%3Apostgres"
}
}
}, {
"id" : "d63328c6-8f7c-492d-89c6-e03f6cca70fe",
"name" : "fantastic",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/tags/d63328c6-8f7c-492d-89c6-e03f6cca70fe"
},
"search" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/search?q=tag%3Afantastic"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/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.meltano.com:443/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/tags/d63328c6-8f7c-492d-89c6-e03f6cca70fe' -i -X GET

Response

200 OK

Tag with HAL links.

{
"id" : "d63328c6-8f7c-492d-89c6-e03f6cca70fe",
"name" : "fantastic",
"usage" : 1,
"_links" : {
"self" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/tags/d63328c6-8f7c-492d-89c6-e03f6cca70fe"
},
"search" : {
"href" : "https://app.meltano.com/api/workspaces/4e10c4bf-68e0-4bfe-bf8c-86f4543f4415/search?q=tag%3Afantastic"
}
}
}

See Also