Can someone provide a sample payload for SBC (Search Before Create) API call that updates an existing entity?
I can provide a search filter that returns results for the API call below. But even when it returns results in the matches array, it always creates a new entity. What parameters are required to have Reltio update the matched entities, instead of creating new?
The documentation leads me to believe that by setting applyIfNoMatches to false, it should update the existing entities when they match the search criteria.
I also tried options=partialOverride to no avail.
If this worked, I would assume that it would update the entity's email address with the number 5.
https://docs.reltio.com/en/explore/get-going-with-apis-and-rocs-utilities/reltio-rest-apis/model-apis/entities-api/search-before-create
curl --location 'https://{{env}}.reltio.com/reltio/api/{{tenant}}/entities/_conditional?applyIfNoMatches=false&returnMatches=true&filter=equals(type%2C%27configuration%2FentityTypes%2FIndividual%27)%20and%20equals(attributes.Email.Email%2C%20%27acvxzcvx4%40example.com%27)&select=uri%2Cattributes.Email.Email&options=partialOverride' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data-raw '[
{
"type": "configuration/entityTypes/Individual",
"attributes": {
"Email": [
{
"value": {
"Email": [
{
"value": "acvxzcvx5@example.com"
}
]
}
}
]
}
}
]'
Response:
{
"matches": [
{
"uri": "entities/15JovVE",
"attributes": {
"Email": [
{
"value": {
"Email": [
{
"type": "configuration/entityTypes/Individual/attributes/Email/attributes/Email",
"ov": true,
"value": "acvxzcvx4@example.com",
"uri": "entities/15JovVE/attributes/Email/2Z6mELeW/Email/2Z6mEPum"
}
]
},
"ov": true,
"uri": "entities/15JovVE/attributes/Email/2Z6mELeW"
}
]
}
}
],
"applied": [
{
"index": 0,
"object": {
"uri": "entities/0SbswTi",
"attributes": {
"Email": [
{
"value": {
"Email": [
{
"type": "configuration/entityTypes/Individual/attributes/Email/attributes/Email",
"ov": true,
"value": "acvxzcvx5@example.com",
"uri": "entities/0SbswTi/attributes/Email/26037SDi/Email/26037WTy"
}
]
},
"ov": true,
"uri": "entities/0SbswTi/attributes/Email/26037SDi"
}cc
]
}
},
"successful": true
}
]
}
------------------------------
Joseph Hoppe
------------------------------