Hi All,
We have certain entities like Sales Accounts that may be related to a large number of other entities like Organisations. When any of those relationships change i.e. a new Organisation gets added/removed to/from the Sales Account , we have to send a notification to all interested applications.
In some cases, this results in a massive payload as we sent the entire resource with all the related entities. This is causing us problems and hence we feel that we should only send the related entities where the relationship is changing rather than all entities.
To achieve this, we were thinking of adding an action field against every related entity in the payload to indicate if the entity relationship was added, removed or changed.
1) Does this approach of only sending the related entities seem sensible in order to reduce the payload?
2) If yes, are there any other options apart from adding an action field?
3) Where could the action field sit in the payload? One option is below
"relatedParty": [
{
"action":"delete"
"@referredType": "organization",
"href": "https://api.business.bt.com/tmf/party/v4/organization/E09749794",
"id": "E09749794",
"name": "BT Internal",
"role": "internal"
},
{
"action":"add"
"@referredType": "groupServiceAccount",
"href": "https://api.business.bt.com/tmf-api/partyRoleManagement/v4/groupServiceAccount/G7854349",
"id": "G785439",
"name": "ABCD GLOBAL ACC1",
"role": "groupServiceAccount"
}
]
------------------------------
Milind Bhagwat
BT Group plc
------------------------------