Tag
Use the Catalog API to create, update, and retrieve tags.
{{< codeheader "Tag Object" >}}
{
"tags": [
"NYC",
"taxi",
"2023"
],
"version": "VJ3ijXH4m6k="
}
Tag Attributes
{{< api-section file="data/software-api/tag.json" data="tagAttributes" >}}
Creating Tags
Create one or more tags for the specified dataset.
{{< codeheader "Method and URL" >}}
POST /api/v3/catalog/{dataset-id}/collaboration/tag
Parameters
{{< api-section file="data/software-api/tag.json" data="createTagParameters" >}}
{{< codeheader "Example Request" >}}
curl -X POST 'https://{hostname}/api/v3/catalog/1bcab7b3-ee82-44c1-abcc-e86d56078d4d/collaboration/tag' \
--header 'Authorization: _dremio{tokenstring}' \
--header 'Content-Type: application/json' \
--data-raw '{
"tags": ["NYC", "taxi", "2023"]
}'
{{< codeheader "Example Response" >}}
{
"tags": [
"NYC",
"taxi",
"2023"
],
"version": "VM3ijXH4m6k="
}
Response Status Codes
{{< api-responses file="data/software-api/tag.json" data="createTagResponseCodes" >}}
Retrieving Tags
Retrieve the tags applied to the specified dataset.
{{< codeheader "Method and URL" >}}
GET /api/v3/catalog/{dataset-id}/collaboration/tag
Parameters
{{< api-section file="data/software-api/tag.json" data="retrieveTagParameters" >}}
{{< codeheader "Example Request" >}}
curl -X GET 'https://{hostname}/api/v3/catalog/1bcab7b3-ee82-44c1-abcc-e86d56078d4d/collaboration/tag' \
--header 'Authorization: _dremio{tokenstring}' \
--header 'Content-Type: application/json'
{{< codeheader "Example Response" >}}
{
"tags": [
"NYC",
"taxi",
"2023"
],
"version": "VM3ijXH4m6k="
}
Response Status Codes
{{< api-responses file="data/software-api/tag.json" data="retrieveTagResponseCodes" >}}
Updating Tags
Update the tags for the specified dataset.
{{< codeheader "Method and URL" >}}
POST /api/v3/catalog/{dataset-id}/collaboration/tag
Parameters
{{< api-section file="data/software-api/tag.json" data="updateTagParameters" >}}
{{< codeheader "Example Request" >}}
curl -X POST 'https://{hostname}/api/v3/catalog/1bcab7b3-ee82-44c1-abcc-e86d56078d4d/collaboration/tag' \
--header 'Authorization: _dremio{tokenstring}' \
--header 'Content-Type: application/json' \
--data-raw '{
"tags": ["NYC", "taxi", "2023", "archived"],
"version": "VM3ijXH4m6k="
}'
{{< codeheader "Example Response" >}}
{
"tags": [
"NYC",
"taxi",
"2023",
"archived"
],
"version": "yiZSE++9wiU="
}
Response Status Codes
{{< api-responses file="data/software-api/tag.json" data="updateTagResponseCodes" >}}
Deleting Tags
Delete the tags for the specified dataset.
Deleting tags means sending an empty array to replace the existing tags with no tags. The tag object will still exist, but it will contain an empty tags array and no tags will appear for the dataset in the Dremio UI.
{{< codeheader "Method and URL" >}}
POST /api/v3/catalog/{dataset-id}/collaboration/tag
Parameters
{{< api-section file="data/software-api/tag.json" data="deleteTagParameters" >}}
{{< codeheader "Example Request" >}}
curl -X DELETE 'https://{hostname}/api/v3/catalog/1bcab7b3-ee82-44c1-abcc-e86d56078d4d/collaboration/tag' \
--header 'Authorization: _dremio{tokenstring}' \
--header 'Content-Type: application/json' \
--data-raw '{
"tags": [],
"version": "yiZSE++9wiU="
}'
{{< codeheader "Example Response" >}}
{
"tags": [],
"version": "wuTAKuRcVas="
}
Response Status Codes
{{< api-responses file="data/software-api/tag.json" data="deleteTagResponseCodes" >}}