mirror of https://github.com/dapr/docs.git
Set retain property per request
Signed-off-by: spike <hello@spike.wiki>
This commit is contained in:
parent
af30905fb5
commit
55de6d7381
|
@ -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
|
## Related links
|
||||||
|
|
||||||
- [Basic schema for a Dapr component]({{< ref component-schema >}})
|
- [Basic schema for a Dapr component]({{< ref component-schema >}})
|
||||||
|
|
Loading…
Reference in New Issue