Create/Update a Relationship
POST
Creates or updates a relationship.
Consumes
This API call consumes the application/json
media types via the Content-Type request header.
Request Syntax
POST /v1/simpleIngest
Request Body
JSON
Request Example
{
"Description": "Test Simple Ingestion Relationship",
"Recipe":
{
"PrimaryPlan":
{
"KeyFieldIds": [
],
"Id": "MIR_EQHSEQ",
"Action": "ACTION_INSERTUPDATE",
"Genealogy": "Primary",
"FamilyType": "Relationship",
"GedaTypeName": "assettype_assettype"
},
"PredecessorPlan":
{
"KeyFieldIds": [
"MI_EQUIP000_EQUIP_ID_C",
"MI_EQUIP000_SAP_SYSTEM_C"
],
"Id": "MI_EQUIP000",
"GedaTypeName" : "UNIFIED_ASSET__assettype",
"Action": "ACTION_INSERTUPDATE",
"Genealogy": "Predecessor",
"FamilyType": "Entity"
},
"SuccessorPlan":
{
"KeyFieldIds": [
"MI_EQUIP000_EQUIP_ID_C",
"MI_EQUIP000_SAP_SYSTEM_C"
],
"Id": "MI_EQUIP000",
"GedaTypeName" : "UNIFIED_ASSET__assettype",
"Action": "ACTION_INSERTUPDATE",
"Genealogy": "Successor",
"FamilyType": "Entity"
}
},
"Rows": [
{
"PRED|MI_EQUIP000_EQUIP_ID_C": "PWR-APM-ASSET97",
"PRED|MI_EQUIP000_SAP_SYSTEM_C": "PRF-800",
"PRED|MI_EQUIP000_UNIQUE_ID_C": "PRF-800-PWR-APM-ASSET97",
"SUCC|MI_EQUIP000_EQUIP_ID_C": "PWR-APM-ASSET99",
"SUCC|MI_EQUIP000_SAP_SYSTEM_C": "PRF-800",
"SUCC|MI_EQUIP000_UNIQUE_ID_C": "PRF-800-PWR-APM-ASSET99"
}
]
}
Return Type
200 OK
Produces
This API call produces the application/json
media type according to the Accept request header. The media type will be conveyed by the Content-Type
response header.
Success Response
200
Success