# Service Naming Rule API using Request Attribute

**URL:** <https://community.dynatrace.com/t/service-naming-rule-api-using-request-attribute/31257>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [April 26, 2021, 1:28pm UTC](https://community.dynatrace.com/t/service-naming-rule-api-using-request-attribute/31257 "2021-04-26T13:28:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![curtis\_kellogg](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@curtis\_kellogg](https://community.dynatrace.com/u/curtis_kellogg)\
**Post date:** [April 26, 2021, 1:28pm UTC](https://community.dynatrace.com/t/service-naming-rule-api-using-request-attribute/31257/1 "2021-04-26T13:28:22Z")

</div>

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”: “=”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![curtis\_kellogg](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@curtis\_kellogg](https://community.dynatrace.com/u/curtis_kellogg)\
**Post date:** [April 26, 2021, 3:15pm UTC](https://community.dynatrace.com/t/service-naming-rule-api-using-request-attribute/31257/2 "2021-04-26T15:15:59Z")

</div>

After trying various comparison values , using “EQUALS”&nbsp; is what worked

Replaced&nbsp;“comparison”: “BEGINS\_WITH”, with&nbsp;“comparison”: “EQUALS”,

and now the naming rule works as expected.
