- You can upload measurements files in
JSONformat and you must specify the file content type when you request an upload URL. - An upload job ID is returned with the upload URL and you can use this upload job ID for other file upload service calls to follow up and troubleshoot any issues that arise with a file upload.
- Uploaded files are processed sequentially at a rate of 2,000 measurements per second. Multiple files can be uploaded concurrently or while other files are being processed. Higher processing rates are available if required.
Uploading a Measurements Data File
This is a two-stage process:- First, obtain an upload URL from the m3ter platform by making a POST request to this endpoint:
https://api.m3ter.com/organizations/{{orgId}}/fileuploads/measurements/generateUploadUrl
The request body for this call should have the following structure:
fileName and contentLength parameter values you use will be specific to the file you intend to upload. In the response, the call will return:
- An upload URL, which is time limited - it is valid for one minute.
- An upload job ID.
- Second, when you have received the response to your request for an upload URL, you can upload the data in your file using a PUT request to the returned upload URL. The binary data from the file should form the request body and the file should contain an array of measurements data. For example:
Troubleshooting Measurement File Uploads
If any issues occur with your measurements data file upload, file upload service API calls are available to help you follow up and troubleshoot:Downloading Previously Uploaded Measurements File
You can retrieve a measurements file that you’ve previously uploaded to the file upload service: Follow a two-step process:- Use this call with the file upload job id to obtain a download URL. A download URL is returned together with a download job id.
- You can then use a GET using the returned download URL as the endpoint to retrieve the previously uploaded file.
Obtaining File Upload Job Details
You can use two calls to obtain details of file upload jobs:- List File Upload Jobs - use this call to return a list of the file upload jobs. You can use two optional query parameters with this call -
dateCreatedStartanddateCreatedEnd- to define a date range and filter the list of file upload jobs returned. - Get File Upload Job Response - use this call to get the file upload job response using the file upload job id. This returns useful information about the specific upload job, including it’s status - “notUploaded”, “running”, “failed”, or “succeeded”.
Uploading a Measurements Data File in the Console
If you have prepared a usage data measurements file in JSON format ready for upload using the File Upload Service, you can perform the upload directly in the Console. To upload a JSON measurements data file in the Console:- Select Metering. The Meters page opens.
- Select the NAME hotlink text of the Meter . The Meter Details page opens.
- Scroll down the page to the Submit Measurements panel.
- Select the File Upload API tab:

- You can perform the measurements data file upload in one of two ways:
- Drag-and-drop the file into the panel.
- Use Select Files to open a File Upload selection window, locate and select the file where you have it saved, and select Open.