retention_days to null to inherit the deployment default. Explicit values must be from 1 to
3650 days. This operation requires streams.configure.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X PUT http://localhost:5080/api/v1/streams/$STREAM_ID/settings \
-H "authorization: Bearer $MS_JWT" \
-H 'content-type: application/json' \
-d '{"retention_days": 30}'
Set how long a stream’s data is kept.
curl -X PUT http://localhost:5080/api/v1/streams/$STREAM_ID/settings \
-H "authorization: Bearer $MS_JWT" \
-H 'content-type: application/json' \
-d '{"retention_days": 30}'
PUT /api/v1/streams/{id}/settings
curl -X PUT http://localhost:5080/api/v1/streams/$STREAM_ID/settings \
-H "authorization: Bearer $MS_JWT" \
-H 'content-type: application/json' \
-d '{"retention_days": 30}'
retention_days to null to inherit the deployment default. Explicit values must be from 1 to
3650 days. This operation requires streams.configure.Was this page helpful?