Best Non Empty match
2 min
Use this to get the best non empty match of the two or more inputs. Clone this API to add more inputs
API Definition
Best Non Empty Match API (Single Match)
Call the following API to execute a single match:
POST
https://orca.pathfix.com/functions/list/bestmatch
{
"bestmatches": {
"best_match": {
"input": [
"",
"Second Item",
"Third Item"
],
"rule": "first_not_empty"
}
}
}
Best Non Empty Match API (Multiple Match)
Call the following API to execute multiple match:
POST
https://orca.pathfix.com/functions/list/bestmatch
{
"bestmatches": {
"name": {
"input": [
"james Dean",
"James",
"Dean"
],
"rule": "first_not_empty"
},"status": {
"input": [
"",
"unknown",
],
"rule": "first_not_empty"
}
}
}