POST
/
measurements
curl --request POST \
  --url https://connect.withvayu.com/measurements \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "<string>",
  "meterId": "<string>",
  "usageDate": {
    "year": 1,
    "month": 6,
    "day": 16
  },
  "value": 1
}'
{
  "measurement": {
    "customerId": "<string>",
    "meterId": "<string>",
    "usageDate": {
      "year": 1,
      "month": 6,
      "day": 16
    },
    "value": 1,
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

RequestSuccess

The response is of type object.