Tag
Use the Catalog API to create, update, and retrieve tags.
Tag Object{
"tags": [
"NYC",
"taxi",
"2023"
],
"version": "VJ3ijXH4m6k="
}
Tag Attributes
tags Array of String
List of tags that apply to the dataset.
Example: ["NYC","taxi","2023"]
version String
Unique identifier of the set of tags. Dremio changes the version whenever any of the tags change and uses the version value to ensure that updates apply to the most recent version of the set of tags.
Example: VJ3ijXH4m6k=
Create Tags
Create one or more tags for the specified dataset.
Method and URLPOST /api/v3/catalog/{dataset-id}/collaboration/tag
Parameters
dataset-id Path String (UUID)
Unique identifier of the dataset for which you want to add tags.
Example: 1bcab7b3-ee82-44c1-abcc-e86d56078d4d
tags Body Array of String
List of tags to apply to the dataset. Tags are case-insensitive. Each tag can be listed only once for each dataset. Each tag can have a maximum of 128 characters. Tags cannot include the following special characters: /, :, [, or ].
Example: ["NYC","taxi","2023"]
Example
Requestcurl -X POST 'https://{hostname}/api/v3/catalog/1bcab7b3-ee82-44c1-abcc-e86d56078d4d/collaboration/tag' \
--header 'Authorization: Bearer <dremioAccessToken>' \
--header 'Content-Type: application/json' \
--data-raw '{
"tags": ["NYC", "taxi", "2023"]
}'
{
"tags": [
"NYC",
"taxi",
"2023"
],
"version": "VM3ijXH4m6k="
}
Response Status Codes
200 OK
400 Bad Request
401 Unauthorized
403