Skip to main content
PATCH
/
api
/
v1
/
custom-pricing
Update custom pricing
curl --request PATCH \
  --url https://api.agentmeter.com/api/v1/custom-pricing \
  --header 'X-AgentMeter-Key: <api-key>'
Updates mutable custom pricing fields. This endpoint requires a pricing-admin scoped API key and records an audit log entry.

Request

{
  "id": "00000000-0000-0000-0000-000000000000",
  "price_per_unit_usd": 0.012,
  "effective_to": "2026-07-01T00:00:00.000Z",
  "notes": "Updated vendor list price."
}

Response

{
  "ok": true
}

Notes

  • Omitted fields are left unchanged.
  • Explicit null clears nullable fields such as effective_to and notes.
  • A missing row returns a validation-style 404 response.