Skip to content

Commit 29caa94

Browse files
authored
Merge pull request #39598 from brndkfr/master
APIM- Transformation Policies - deleting header with set-header example
2 parents 613c3ed + 454958b commit 29caa94

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

articles/api-management/api-management-transformation-policies.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,20 @@ OriginalUrl.
463463

464464
### Examples
465465

466-
#### Example
466+
#### Example - adding header, override existing
467467

468468
```xml
469469
<set-header name="some header name" exists-action="override">
470470
<value>20</value>
471471
</set-header>
472472
```
473+
#### Example - removing header
474+
475+
```xml
476+
<set-header name="some header name" exists-action="delete" />
477+
```
478+
479+
473480

474481
#### Forward context information to the backend service
475482
This example shows how to apply policy at the API level to supply context information to the backend service. For a demonstration of configuring and using this policy, see [Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky](https://azure.microsoft.com/documentation/videos/episode-177-more-api-management-features-with-vlad-vinogradsky/) and fast-forward to 10:30. At 12:10 there is a demo of calling an operation in the developer portal where you can see the policy at work.
@@ -503,7 +510,7 @@ OriginalUrl.
503510
|Name|Description|Required|
504511
|----------|-----------------|--------------|
505512
|set-header|Root element.|Yes|
506-
|value|Specifies the value of the header to be set. For multiple headers with the same name add additional `value` elements.|Yes|
513+
|value|Specifies the value of the header to be set. For multiple headers with the same name add additional `value` elements.|No|
507514

508515
### Properties
509516

0 commit comments

Comments
 (0)