This endpoint allows the import of a emission records import file. The file should be a base64-encoded delimited text file with a UTF8 character set.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Request Body
RecordImportRequestV202403
| Property | Description | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fileContent | The base64 encoded file Required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fileName | FileName for the import file. Should include extension. The extension allows the importer to read the data in the proper format (csv, xlsx) Required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| importNote | Optional note/comment. | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| inlineProfile | RecordImportProfileV202403 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
RecordImportProfileV202403 properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| profileCode | Name of the import profile Must be between 0 and 64 characters Only one of ProfileCode, InlineProfile can be set | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example Request Body
{ "fileContent": "string", "fileName": "string", "importNote": "string", "inlineProfile": { "costColumnIndex": 1, "costUnitId": 1, "createNewEntities": false, "dateFormat": "string", "directOffsetColumnIndex": 1, "directOffsetUnitId": 1, "emissionSourceCodeColumnIndex": 1, "emissionSourceNameColumnIndex": 1, "emissionSourceTypeColumnIndex": 1, "endDateColumnIndex": 1, "notes": "string", "notesColumnIndex": 1, "numberOfHeaderRows": 1, "startDateColumnIndex": 1, "supplierColumnIndex": 1, "useColumnIndex": 1, "useUnitId": 1
}, "profileCode": "string"
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
GuidResponse
| Property | Description | Type |
|---|---|---|
| taskGUId | A guid that identifies the current task | string (uuid) |
Example Response
{ "taskGUId": "string"
}