Set retain property per request

Signed-off-by: spike <hello@spike.wiki>
This commit is contained in:
spike 2023-02-05 23:44:23 +08:00
parent af30905fb5
commit 55de6d7381
1 changed files with 14 additions and 0 deletions

View File

@ -149,6 +149,20 @@ You can override the topic in component metadata on a per-request basis:
}
```
## Set retain property per-request
You can override the retain property in component metadata on a per-request basis:
```json
{
"operation": "create",
"metadata": {
"retain": "true"
},
"data": "<h1>Testing Dapr Bindings</h1>This is a test.<br>Bye!"
}
```
## Related links
- [Basic schema for a Dapr component]({{< ref component-schema >}})