Set a group counter
State
Set a group counter
Set a counter to an absolute value using replace (last-write-wins) semantics. To add to a counter atomically, use the increment endpoint.
PUT
Set a group counter
Sets a counter value on a group directly. The counter is identified by its key in the URL path. If the counter does not exist, it is created. If it already exists, its value is overwritten with the provided amount.
This is an absolute set with last-write-wins semantics; to add to a counter atomically, use increment counter. You can optionally include
reset_after (a duration string with h, d, or w units, like "24h" or "30d") to configure auto-reset. Pass an empty string to clear an existing reset interval.
For usage patterns and examples, see the State Management guide.
Authorizations
API key passed in the X-API-Key header.
Body
application/json
Counter value and optional reset_after