Skip to navigation

Process a file: a BUCKET file becomes UPLOADED once its content is uploaded, or REJECTED (200) when the upload is over 2 GiB (TOO_LARGE) or repeats an accepted file (DUPLICATE_FILE); 409 if nothing is uploaded yet or the file can no longer move on. Only PROXY users can restart a file that is UPLOADED, VALIDATED, PROCESSING or in ERROR. A DEFAULT file becomes TO_BE_PROCESSED

Requires the FILE.METER_DATA.UPDATE permission.

Authentication

X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer

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

Path parameters

versionstringRequiredDefaults to 1
version
resourceIdstringRequiredDefaults to
The ID of the resource for which the action is posted.

Headers

x-platform-idstringOptional
Platform ID.

Response

OK
object_typestring or nullOptionalRead-only
idstring or nullOptionalRead-only
referencestringOptionalformat: "^\S+$"0-256 characters
file_namestringOptionalformat: "^[a-zA-Z0-9!#$%&-_.*\s]*$"0-256 characters
The name of the uploaded file. Required for a DEFAULT file, cannot be set on a BUCKET file
created_atstring or nullOptionalRead-only
statusenumOptional
typeenumOptional

EVENTS. METER_DATA is deprecated: still accepted and handled the same as EVENTS, but use EVENTS

Allowed values:
namestring or nullOptionalformat: "^.*$"0-256 characters
descriptionstring or nullOptionalformat: "^.*$"0-256 characters
customer_idstring or nullOptional
processing_typeenum or nullOptional
DEFAULT when left out. A BUCKET file only takes DEFAULT
Allowed values:
file_processing_settings_idstring or nullOptional
eventsobjectOptional

For type EVENTS: the meter and the ingest timestamp of its lines

meter_dataobjectOptional

As events, for the deprecated type METER_DATA

content_typestringOptional
column_headerslist of strings or nullOptionalRead-only
number_of_lineslongOptional
messagestring or nullOptionalRead-only
download_settingsobjectOptional
sourceenumOptional

Where the content comes from: DEFAULT (in content) or BUCKET (uploaded to the upload url). Cannot be changed

Allowed values:
line_countsobject or nullOptional
bucket_filesobject or nullOptional
uploadobject or nullOptional
Only in the response to creating a BUCKET file

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error