Skip to main content

Import file

A request to asynchronous import file

POST /api/v1/files/{fileId}/import HTTP/1.1

Generates Notification file import notification.

  1. Path parameters
ParameterDescription
fileIdThe ID of the file.
  1. Request parameters
ParameterDescription
conflictStrategyConflict resolution strategy (keep_both / overwrite / versioned)
encodingEncoding for DSV/CSV conversion (CP866 / ISO8859_5 / KOI8R / KOI8U / UTF16BE / UTF16LE / UTF32BE / UTF32LE / UTF8 / Windows1250 / Windows1251 / Windows1252 / auto). [Since 2020.04]
separatorsSeparators for DSV/CSV conversion. Can be from letters CPSTV. [Since 2020.04]
escapeDSV file escape char ( quote / double_quote). [Since 2020.04]
timezoneOffsetMinsTimezone to be used during the conversion process [Since 2017.03]
  1. 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 '{ }'
  1. Example response
HTTP/1.1 202 Accepted
X-co-request-id: 695344427255416774517a30576b366c