Skip to main content
DELETE
/
v1
/
groups
/
{id}
/
state
/
counters
/
{key}
Delete a group counter
curl --request DELETE \
  --url https://api.scrip.dev/v1/groups/{id}/state/counters/{key} \
  --header 'X-API-Key: <api-key>'
{
  "code": "bad_request",
  "details": {
    "expected": "present",
    "field": "amount",
    "message": "This field is required",
    "reason": "required",
    "received": "<string>"
  },
  "message": "Invalid request parameters"
}
Removes a counter from a group entirely. The counter key is specified in the URL path. Once deleted, the counter no longer appears in the group’s state. Deleting a counter that does not exist returns a successful response. If a rule action later references this counter, the counter will be re-created starting from zero. This means deletion is not a permanent block on the key, just a reset of the current state.
For usage patterns and examples, see the State Management guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

id
string<uuid>
required

Group ID

key
string
required

Counter key

Response

Counter removed