Hi Jonathan,
Thanks for your response. Can you please tell me how to update the relationship . I need to remove id=45 object from resourceRelationship array how to remove that from resourceRelationship.
Example:
"resourceRelationship": [{
"relationshipType": "contains",
"resource": {
"id": "44",
"href": "https://host:port/geographicSiteManagement/v4/",
"@type":"pole"
}
},
{
"relationshipType": "contains",
"resource": {
"id": "45",
"href": "https://host:port/geographicSiteManagement/v4/",
"@type":"pole"
},
{
"relationshipType": "contains",
"resource": {
"id": "46",
"href": "https://host:port/geographicSiteManagement/v4/",
"@type":"pole"
}
],
------------------------------
Arko Chakravarty
VCT International
------------------------------
Original Message:
Sent: Jun 16, 2022 04:34
From: Jonathan Goldberg
Subject: Resource Inventory Management (TMF369) : How to delete resourceRelationship object
Hi Arko
You would do a PATCH in TMF639, probably using JSON Patch semantics to find and delete the relevant relationship in the Resource entity.
PATCH merge could also be used but it's more hairy to define the semantics for deleting one item from a list.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
Original Message:
Sent: Jun 15, 2022 03:47
From: Arko Chakravarty
Subject: Resource Inventory Management (TMF369) : How to delete resourceRelationship object
Hi Team,
Can you please tell me how to delete only resourceRelationship from resource inventory.
Is there is no delete relationship option in tmf.
------------------------------
Arko Chakravarty
VCT International
------------------------------