question

Henk S. avatar image
Henk S. asked ·

Create global request naming rule using configuration API based on SERVICE_REQUEST_ATTRIBUTE

Hello,


Using the API to create web request naming rules, it it correct that defining ANY placeholder works, but can not be used in the naming rule with the {} format?

Example:

{

"enabled": true,

"namingPattern": "{myplaceholder}",

"conditions": [

{

"attribute": "WEBREQUEST_URL_PATH",

"comparisonInfo": {

"type": "STRING",

"comparison": "BEGINS_WITH",

"value": "/url",

"negate": false,

"caseSensitive": false

}

}

],

"Placeholder": [

{"name": "myplaceholder",

"attribute": "WEBREQUEST_URL_PATH",

"kind": "ORIGINAL_TEXT"}

]

}


Gives: 400 Bad request. constraints violation

Pattern contains unknown method naming attribute 'myplaceholder'


KR Henk

 
               
configurationrequest attributes
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Chad T. avatar image
Chad T. answered ·

Can you try making that rule via the UI? You might get it to work that way.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.