So we are experimenting with the new duplicate matching rules in salesforce which seems to work great. My question is if its possible to use the more advanced features when working with data over the Rest API

So right now if you have a duplicate rule setup and you try to create record via the api it correctly errors and send you back the error message text as expected.

But if you say "allow" but "alert the user" it also throws an error when trying to save via the rest api.

So specifically is there a way to get the list of "possible matches" and related to that, how can we "Save (ignore alert)". Id be curious if anyone knows how we might implement something like this either using apex or just the rest api

any insight you might have would be helpful.

![enter image description here](https://i.stack.imgur.com/69KST.png)

UPDATE:

So i was able to find this for how to do it in apex here:
is there similar functionality (ie. AllowSave = true) via the api

<https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Database_DuplicateError.htm>