Glossary - Assign Term To Entities
Assign the given term to the provided list of related objects. Recommend using small batches with multiple API calls.
Entities Create Or Update operation is an alternative to assign a term to multiple entities.
POST {endpoint}/datamap/api/atlas/v2/glossary/terms/{termId}/assignedEntities
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
|
term
|
path | True |
string |
The globally unique identifier for glossary term. |
Request Body
Name | Type | Description |
---|---|---|
body |
An array of related object IDs to which the term has to be associated. |
Responses
Name | Type | Description |
---|---|---|
204 No Content |
There is no content to send for this request, but the headers may be useful. |
|
Other Status Codes |
An unexpected error response. |
Security
OAuth2Auth
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
https://purview.azure.net/.default |
Examples
Glossary_AssignTermToEntities
Sample request
POST {endpoint}/datamap/api/atlas/v2/glossary/terms/8a7f65ec-6429-0b9b-3734-ec57bf1e34c2/assignedEntities
[
{
"guid": "ab9f1920-0b94-436d-aeb4-11a32c270fc0",
"relationshipAttributes": {
"attributes": {
"expression": "Example Expression",
"confidence": 100,
"description": "Example Description",
"source": "ExampleSource"
}
}
}
]
Sample response
Definitions
Name | Description |
---|---|
Atlas |
An error response from the service |
Atlas |
Reference to an object-instance of AtlasEntity type used in relationship attribute values |
Atlas |
Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification. |
Entity |
Status - can be active or deleted |
Status |
Status for atlas relationship |
AtlasErrorResponse
An error response from the service
Name | Type | Description |
---|---|---|
errorCode |
string |
The error code. |
errorMessage |
string |
The error message. |
requestId |
string |
The request ID. |
AtlasRelatedObjectId
Reference to an object-instance of AtlasEntity type used in relationship attribute values
Name | Type | Description |
---|---|---|
displayText |
string |
The display text. |
entityStatus |
Status of the entity - can be active or deleted. Deleted entities are not removed. |
|
guid |
string |
The GUID of the object. |
relationshipAttributes |
Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification. |
|
relationshipGuid |
string |
The GUID of the relationship. |
relationshipStatus |
The enum of relationship status. |
|
relationshipType |
string |
Relationship type |
typeName |
string |
The name of the type. |
uniqueAttributes |
|
The unique attributes of the object. |
AtlasStruct
Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification.
Name | Type | Description |
---|---|---|
attributes |
|
The attributes of the struct. |
lastModifiedTS |
string |
ETag for concurrency control. |
typeName |
string |
The name of the type. |
EntityStatus
Status - can be active or deleted
Name | Type | Description |
---|---|---|
ACTIVE |
string |
The status is active. |
DELETED |
string |
The status is deleted. |
StatusAtlasRelationship
Status for atlas relationship
Name | Type | Description |
---|---|---|
ACTIVE |
string |
active |
DELETED |
string |
deleted |