Workflow or API calls:
I am trying to PATCH an existing Related Person relationship, I was able to add some relationships to the person, however when I try to remove the added relationships, I get the following error:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "A precondition requirement was not satisfied"
}
}
]
}
I have tried using the body, to test the relationship id and delete it:
[
{
"path": "/relationship/1/id",
"op": "test",
"value": "CI-716749453-1"
},
{
"op": "remove",
"path": "/relationship/1"
}
]
and just to test the relationship id:
[
{
"path": "/relationship/1/id",
"op": "test",
"value": "CI-716749453-1"
}
]
And I am still getting the same error.
The relationship id does exists, so I am not sure what is happening here.
The If-Match header is set up correctly and the Content-Type is set up as “application/json-patch+json”
Expected Result:
Relationship id 1 is removed from the Related Person relationship
Actual Result:
Error 412
X-Request-Id: /29BFBFA09D4EB48B06FB906AB61B119E+AVkF_M2kO
opc-request-id: /29BFBFA09D4EB48B06FB906AB61B119E/B65E634467ECA7D97CA5BE1AFA047EF7
Date/time of the example: Thu, 26 Sep 2024 12:42:54 GMT
Thanks in advance!