PUT
/
meters
/
{id}
curl --request PUT \
  --url https://sandbox-api.billingrails.com/v1/meters/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "active",
  "name": "<string>",
  "event": "<string>",
  "description": "<string>",
  "aggregation_event_property": "<string>",
  "aggregation_method": "sum",
  "account_mapping": {
    "type": "id",
    "event_property": "billingrails_account_id"
  }
}'
{
  "meter": {
    "object": "meter",
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "status": "active",
    "name": "<string>",
    "event": "<string>",
    "description": "<string>",
    "aggregation_event_property": "<string>",
    "aggregation_method": "sum",
    "account_mapping": {
      "type": "id",
      "event_property": "billingrails_account_id"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Meter payload

The body is of type object.

Response

200 - application/json

Meter updated

The response is of type object.