Relationship - Update
Update an existing relationship between entities.
PUT {endpoint}/datamap/api/atlas/v2/relationship
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Request Body
Name | Type | Description |
---|---|---|
attributes |
|
The attributes of the struct. |
createTime |
integer |
The created time of the record. |
createdBy |
string |
The user who created the record. |
end1 |
Reference to an object-instance of a type - like entity. |
|
end2 |
Reference to an object-instance of a type - like entity. |
|
guid |
string |
The GUID of the relationship. |
homeId |
string |
The home ID of the relationship. |
label |
string |
The label of the relationship. |
lastModifiedTS |
string |
ETag for concurrency control. |
provenanceType |
integer |
Used to record the provenance of an instance of an entity or relationship |
status |
The enum of relationship status. |
|
typeName |
string |
The name of the type. |
updateTime |
integer |
The update time of the record. |
updatedBy |
string |
The user who updated the record. |
version |
integer |
The version of the relationship. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request has succeeded. |
|
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
Relationship_Update
Sample request
PUT {endpoint}/datamap/api/atlas/v2/relationship
{
"typeName": "AtlasGlossarySynonym",
"attributes": {
"expression": "Example Expression",
"steward": "Example Steward",
"description": "Example Description",
"source": null,
"status": null
},
"guid": "b2810301-293f-493f-88f1-7ac8784fb1fd",
"end1": {
"guid": "77481037-2874-9bdc-9b9e-76bb94ee71aa",
"typeName": "AtlasGlossaryTerm"
},
"end2": {
"guid": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef",
"typeName": "AtlasGlossaryTerm"
},
"label": "r:AtlasGlossarySynonym",
"status": "ACTIVE",
"createdBy": "ExampleCreator",
"updatedBy": "ExampleUpdator",
"version": 0
}
Sample response
{
"typeName": "AtlasGlossarySynonym",
"attributes": {
"expression": "Example Expression",
"steward": "Example Steward",
"description": "Example Description",
"source": null,
"status": null
},
"guid": "b2810301-293f-493f-88f1-7ac8784fb1fd",
"end1": {
"guid": "77481037-2874-9bdc-9b9e-76bb94ee71aa",
"typeName": "AtlasGlossaryTerm"
},
"end2": {
"guid": "b0942506-2d7d-1f45-d286-c29ca9e7f2ef",
"typeName": "AtlasGlossaryTerm"
},
"label": "r:AtlasGlossarySynonym",
"status": "ACTIVE",
"createdBy": "ExampleCreator",
"updatedBy": "ExampleUpdator",
"createTime": 1553839805039,
"updateTime": 1553839805039,
"version": 0
}
Definitions
Name | Description |
---|---|
Atlas |
An error response from the service |
Atlas |
Reference to an object-instance of a type - like entity. |
Atlas |
Atlas relationship instance. |
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. |
AtlasObjectId
Reference to an object-instance of a type - like entity.
Name | Type | Description |
---|---|---|
guid |
string |
The GUID of the object. |
typeName |
string |
The name of the type. |
uniqueAttributes |
|
The unique attributes of the object. |
AtlasRelationship
Atlas relationship instance.
Name | Type | Description |
---|---|---|
attributes |
|
The attributes of the struct. |
createTime |
integer |
The created time of the record. |
createdBy |
string |
The user who created the record. |
end1 |
Reference to an object-instance of a type - like entity. |
|
end2 |
Reference to an object-instance of a type - like entity. |
|
guid |
string |
The GUID of the relationship. |
homeId |
string |
The home ID of the relationship. |
label |
string |
The label of the relationship. |
lastModifiedTS |
string |
ETag for concurrency control. |
provenanceType |
integer |
Used to record the provenance of an instance of an entity or relationship |
status |
The enum of relationship status. |
|
typeName |
string |
The name of the type. |
updateTime |
integer |
The update time of the record. |
updatedBy |
string |
The user who updated the record. |
version |
integer |
The version of the relationship. |
StatusAtlasRelationship
Status for atlas relationship
Name | Type | Description |
---|---|---|
ACTIVE |
string |
active |
DELETED |
string |
deleted |