cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Service Naming Rule API using Request Attribute

curtis_kellogg
Participant

I am trying to rename all of the requests that come in with "/hiddencall" with the "a-bcd-operation-name" requestAttribute value. This does not work, but shows no errors . An example of a value could be something like CustomerUpdateCart. Here is the body of the API call.

{
"enabled": true,
"namingPattern": "{RealName}",
"conditions": [
{
"attribute": "REQUEST_NAME",
"comparisonInfo": {
"type": "STRING",
"comparison": "BEGINS_WITH",
"value": "/hiddencall",
"negate": false,
"isCaseSensitive": false
}
}
],
"placeholders": [
{
"name": "RealName",
"attribute": "SERVICE_REQUEST_ATTRIBUTE",
"requestAttribute": "a-bcd-operation-name",
"kind": "AFTER_DELIMITER",
"delimiterOrRegex": "="
}
]
}

 

1 REPLY 1

curtis_kellogg
Participant

After trying various comparison values , using "EQUALS"  is what worked

Replaced "comparison": "BEGINS_WITH", with "comparison": "EQUALS",

and now the naming rule works as expected.

Featured Posts