Manage Tags
Tag API reference guide
This page describes the tag
endpoint. When implemented, this standard REST interface can tag new data sources automatically.
Additional fields may be included in some responses you receive; however, these attributes are for internal purposes and are therefore undocumented.
Tagging workflow
Create a new tag
POST
/tag
Create a new tag.
Payload parameters
name
string
The name of the tag.
Yes
id
integer
The tag ID.
No
rootTag
array
When provided, indicates the name
of the root (or parent) tag that the child tag will fall under. If a child tag is added, the deleteHierarchy
value will be true
.
No
Response parameters
id
integer
The tag ID.
color
string
An uneditable tag field.
description
string
An uneditable tag field that appears as a tag description in the UI. Built-in tags come with descriptions pre-populated.
name
string
The tag name.
source
string
The system the tag was created by. When curated
, the tag was created in Immuta.
deleted
boolean
If true
, the tag has been deleted.
systemCreated
boolean
When true
, the tag was created by Immuta.
createdBy
string
The profile ID of the creator.
createdAt
timestamp
The date and time of the tag creation.
updatedAt
timestamp
The date and time of the tag update.
Request example
The following request creates a new tag.
Payload example
Response example
Search across all tags
GET
/tag
Search across all tags.
Query parameters
searchText
string
A string used to filter returned tags. The query is executed with a wildcard prefix and suffix.
No
source
string
Filter tags by the source that created them.
No
excludedSource
string
Only return tags that do not have this source.
No
includeAllSystemTags
boolean
If true
, includes all system tags even if they have been deleted. Otherwise, set to false
to filter out all system-created tags.
No
excludedHierarchies
Array[string]
A string used to filter returned tags. The query is executed with a wildcard prefix and suffix.
No
limit
integer
The maximum number of search results that will be returned.
No
Response parameters
id
integer
The tag ID.
name
string
The tag name.
color
string
An uneditable tag field.
description
string
An uneditable tag field that appears as a tag description in the UI. Built-in tags come with descriptions pre-populated.
source
string
The system the tag was created by. When curated
, the tag was created in Immuta.
deleted
boolean
If true
, the tag has been deleted.
systemCreated
boolean
When true
, the tag was created by Immuta.
Request example
The following request searches all tags.
Response example
Update tags
/tag/refresh
/tag/{modelType}/{modelId}
Refresh external tags
POST
/tag/refresh
Refresh external tags.
Request example
The following request refreshes external tags.
Add tags to a particular model
POST
/tag/{modelType}/{modelId}
Add tags to a particular model. No tags will be processed if any invalid tags are found in the payload.
Query parameters
modelType
string
The Immuta component to add the tag to: datasource
, column
, or project
.
Yes
modelId
string
The ID of the column, data source, or project. Note: The modelId
for a column is the data source ID followed by _OBJECTID
(For example, 49_OBJECTID
).
Yes
Payload parameters
No tags will be processed if any invalid tags are found in the payload.
name
string
The name of the tag.
Yes
id
integer
The tag ID.
No
displayName
string
The tag's name that is displayed in the console.
No
source
string
The name of the system that created the tag. When curated
, the tag was created in Immuta.
No
systemCreated
boolean
When true
, the tag was created by Immuta.
No
addedBy
integer
The profile ID of the user who added the tag to the data source, column, or project.
No
deleted
boolean
When true
, the tag has been deleted.
No
hasLeafNodes
boolean
When true
, parent tags exist within the tag hierarchy that have no child tags.
No
createdBy
integer
The profile ID of the user who created the tag.
No
createdAt
date
When the tag was created.
No
updatedAt
date
When the tag was last updated.
No
Response parameters
name
string
The name of the tag.
source
string
The system the tag was created by. When curated
, the tag was created in Immuta.
addedBy
integer
The profile ID of the user who added the tag.
deleted
boolean
When true
, the tag has been deleted.
Add tags to a data source
Request example
The following request adds tags to the data source with the data source ID 22
.
Request payload example
Response example
Add tags to a project
Request example
The following request adds tags to the project with the project ID 2
.
Request payload example
Response example
Add tags to a data source column
Request example
The following request adds tags to the countrycode
column of the data source with the data source ID 6
.
Request payload example
Response example
Delete tags
/tag/{tag}
/tag/{modelType}/{modelId}/{tag}
Delete a tag
DELETE
/tag/{tag}
Delete a tag.
Query parameters
tag
string
The name of the tag.
Yes
deleteHierarchy
boolean
If true
it will delete the entire hierarchy.
No
Response parameters
id
integer
The tag ID.
name
string
The tag name.
color
string
An uneditable tag field.
description
string
An uneditable tag field that appears as a tag description in the UI. Built-in tags come with descriptions pre-populated.
source
string
The system the tag was created by. When curated
, the tag was created in Immuta.
deleted
boolean
If true
, the tag has been deleted.
systemCreated
boolean
When true
, the tag was created by Immuta.
createdBy
string
The profile ID of the creator.
createdAt
timestamp
The date and time of the tag creation.
updatedAt
timestamp
The date and time of the tag update.
Request example
The following request deletes a tag.
Response example
Delete tags from a particular model
DELETE
/tag/{modelType}/{modelId}/{tag}
Delete tags from a particular model.
Query parameters
tag
string
The name of the tag.
Yes
modelType
string
The model type.
Yes
modelId
string
The ID of the column, data source, or project. Note: The modelId
for a column is the data source ID followed by _OBJECTID
(For example, 49_OBJECTID
).
Yes
Request example
The following request deletes a tag.
Last updated