Skip to content

Commit 6b09886

Browse files
Merge pull request #265135 from dlepow/patch-247
[APIM] Update set-body-policy.md
2 parents 9292a1a + 777fdcf commit 6b09886

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/api-management/set-body-policy.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: dlepow
66

77
ms.service: api-management
88
ms.topic: article
9-
ms.date: 01/13/2023
9+
ms.date: 02/02/2024
1010
ms.author: danlep
1111
---
1212

@@ -23,7 +23,7 @@ Use the `set-body` policy to set the message body for a request or response. To
2323
## Policy statement
2424

2525
```xml
26-
<set-body template="liquid" xsi-nil="blank | null">
26+
<set-body template="liquid" xsi-nil="blank | null" parse-date="true | false">
2727
new body value as text
2828
</set-body>
2929
```
@@ -34,6 +34,7 @@ Use the `set-body` policy to set the message body for a request or response. To
3434
| ----------------- | ------------------------------------------------------ | -------- | ------- |
3535
|template|Used to change the templating mode that the `set-body` policy runs in. Currently the only supported value is:<br /><br />- `liquid` - the `set-body` policy will use the liquid templating engine |No| N/A|
3636
|xsi-nil| Used to control how elements marked with `xsi:nil="true"` are represented in XML payloads. Set to one of the following values:<br /><br />- `blank` - `nil` is represented with an empty string.<br />- `null` - `nil` is represented with a null value.<br/></br>Policy expressions aren't allowed. |No | `blank` |
37+
|parse-date| Boolean. Specifies whether date-formatted strings (for example, `"/Date(1198908717056)/"`, `"2012-03-21T05:40Z"`) are parsed to System.DateTime (`mm/dd/yyyy hh:mm:ss`). When set to `false`, date values are simply copied.<br/></br>Policy expressions aren't allowed. |No| `true`|
3738

3839
For accessing information about the request and response, the Liquid template can bind to a context object with the following properties: <br />
3940
<pre>context.

0 commit comments

Comments
 (0)