Multi Switch
1 min
Switches the reponse based on the input provided. e.g if you are looking for a convert all reponses to a standardized output. The multi switch performs multiple switch operations at the same time
API Definition
MultiSwitch API
Call the following API to switch multiple responses with a standard output
POST
https://orca.pathfix.com/functions/text/multiswitch
{
"switches": {
"lead source": {
"input": "Facebook",
"switch": {
"Facebook": "fb",
"fbook": "fb",
"facebook": "fb",
"facebk": "fb",
"linkedIn": "li",
"LinkedIn": "li",
"LinkIn": "li"
}
},
"product interest": {
"input": "authentication",
"switch": {
"oauth": "oauth-data",
"authentication": "oauth-sso",
"auth": "oauth-sso",
"automation": "atmn",
"webhooks": "atmn"
}
}
}
}