Import file
A request to asynchronous import file
POST /api/v1/files/{fileId}/import HTTP/1.1
Generates Notification file import notification.
- Path parameters
| Parameter | Description |
|---|---|
fileId | The ID of the file. |
- Request parameters
| Parameter | Description |
|---|---|
conflictStrategy | Conflict resolution strategy (keep_both / overwrite / versioned) |
encoding | Encoding for DSV/CSV conversion (CP866 / ISO8859_5 / KOI8R / KOI8U / UTF16BE / UTF16LE / UTF32BE / UTF32LE / UTF8 / Windows1250 / Windows1251 / Windows1252 / auto). [Since 2020.04] |
separators | Separators for DSV/CSV conversion. Can be from letters CPSTV. [Since 2020.04] |
escape | DSV file escape char ( quote / double_quote). [Since 2020.04] |
timezoneOffsetMins | Timezone to be used during the conversion process [Since 2017.03] |
- Example request
curl 'http://localhost:8080/api/v1/files/189332757/import?encoding=iso8859_5&separators=VCP&escape=double_quote&conflictStrategy=keep_both' -i -X POST \
-H 'Content-Type: application/json' \
-H 'X-co-auth-token: b905769bbedcd0cdd1b3e8782c4d34ce' \
-d '{ }'
- Example response
HTTP/1.1 202 Accepted
X-co-request-id: 695344427255416774517a30576b366c