Skip to main content
Command reference

codespar meter-events

Meter events: record one usage event, idempotent on its event id

1 min read
View MarkdownEdit on GitHub

Meter events: record one usage event, idempotent on its event id

1 command in @codespar/cli 0.18.1.

Each one prints what its operation answered. What a command prints has the rule, and Configuration has the exit codes and the shape of a failure.

codespar meter-events create

Record a usage event

codespar meter-events create --input '{"event":"string","customer":"string","value":1000,"event_id":"event_0000000000000000","timestamp":"2026-01-15T12:00:00.000Z"}'
optionwhat it does
-q, --query <key=value>Query parameter (repeatable) (default: [])
--timeout <ms>Per-request timeout in milliseconds
-i, --input <json>Request body as a JSON string
-f, --input-file <path>Request body from a JSON file

POST /v1/meter-events · parameters, responses and refusals

codespar meter-events | CodeSpar