Skip to navigation

write_usage_limit

Create, update, activate or archive usage limits

Live server: test server (test.mcp.solvimon.com) only.

Creates and updates a customer’s usage limits, and activates or archives them.

Actions: create, update, status (ACTIVE or ARCHIVED)

  • scope: SELF caps the customer’s own usage. scope: CHILDREN is the default cap for each child customer.
  • limit is exactly one of number, amount or credits, matching the meter value’s type.
  • Alerts need a USAGE workflow with a send-webhook action. Every result reminds you.
Cap each child customer at 1M events
{"action": "create", "customer_id": "cust_AbD3DqausjOYiMNDZY11F", "meter_value_calculation_id": "mvc_Jh5tRw9PnX3kMq7VbYd28", "scope": "CHILDREN", "limit": {"number": "1000000"}}