I am trying to update (PATCH) a party relationship via the DirPartyRelationShip entity.
I have tried to PATCH on this:
{{resource}}/data/PartyRelationships(RelationshipType='BeneficiaryTrust',ParentPartyId='000000603',ChildPartyId='000000403',LegalEntityDataArea='',ValidTo='2154-12-31T23:59:59Z', ValidFrom = '2023-02-09T07:06:13Z')
but I am getting a 404:
{
"Message": "No HTTP resource was found that matches the request URI 'https://xxxx.dynamics.com/data/PartyRelationships(RelationshipType='BeneficiaryTrust',ParentPartyId='000000603',ChildPartyId='000000403',LegalEntityDataArea='',ValidTo='2154-12-31T23:59:59Z', ValidFrom = '2023-02-09T07:06:13Z')'. No route data was found for this request."
}
Any idea what I am doing wrong in my request
A get on this endpoint will return data like:
{
"@odata.context": "https://xxx.dynamics.com/data/$metadata#PartyRelationships",
"value": [
{
"@odata.etag": "W/\"JzEsNTYzNzE1MTMyNabcLDU2MabcNDQ2MDAn\"",
"RelationshipType": "BeneficiaryTrust",
"ParentPartyId": "000000603",
"ChildPartyId": "000000403",
"LegalEntityDataArea": "",
"ValidTo": "2154-12-31T23:59:59Z",
"ValidFrom": "2023-02-09T07:06:13Z",
"CustomField1": "test"
}
]
}