Generate Upload URL
Changed onGenerate a URL for uploading a file containing measurements to the platform in preparation for the measurements it contains to be ingested:
- An upload URL is returned together with an upload job id:
- You can then upload your data measurements file using a PUT request using the returned upload URL as the endpoint.
- You can use the returned upload job id with other calls to the File Upload Service for any follow-up or troubleshooting.
Important:
- The contentLength request parameter is required.
- The upload URL is time limited - it is valid for one minute.
Part of the file upload service for submitting measurements data files.
Request
- Base URLhttps://api.m3ter.com
- AuthOAuth 2Authorization codehttps://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize, token URL https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/tokenClient credentialsToken URL /oauth/tokenScopesmeasurements:fileUpload
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
UUID of the Organization. The Organization represents your company as a direct customer of the m3ter platform.
Request body
Response
Returns the upload URL and jobId
Changes
- breaking
the
response's property type changed from no type toobjectfor status - info
removed
subschema #1subschema #2from theresponse propertyallOflist for the response status
- breaking
- breaking
request property
was restricted to a list of enum values - breaking
the request property
became required - info
added the new
application/jsonenum value to the request property - info
added the new
text/jsonenum value to the request property
- breaking