import.query
Description
Query the import status.
Params
- token
- string
-
Access token.
- importIds
- array
-
IDs of import tasks to query
- importId
- int
-
ID of import task
- options
- struct
- optional
-
Additional options
Response
- response
- struct
-
- status
- int
- enum
-
Status code
Value Description 200
OK
400
Bad params
404
One of requested IDs was not found.
500
Server error
- statusMessage
- string
-
Status code description
- import
- array
-
List of requested import statuses.
- importStatus
- struct
-
- importId
- int
-
ID of import
- status
- string
- enum
-
Status of import
Value Description waiting
Import is waiting to be processed.
processing
Import is being processed right now.
done
Import has finished.
error
Import failed.
- dateCreated
- datetime
-
Date the import has been created
- dateFinished
- datetime
- null
-
Date the import has finished or NULL if it is still running.
- result
- array
- optional
-
If showImportResult was specified in params, contains list of imported items.
- item
- struct
-
One item from imported file.
- xwgId
- int
- null
-
xWG ID if known
- xwgName
- string
-
Name of xWG
- xwgVersion
- string
-
Version of xWG
- status
- string
- enum
-
Status of xWG
Value Description collected
xWG has been collected
modified
Multiple options of xWG has been modified
not_modified
xWG has already status that is described in import file
no_exists
xWG does not exists
error
General error during import. See note for more details.
no_unique
xWG was not specified uniquely
uncollected
xWG has been removed from collection
- note
- string
-
Description in case of error
Call example
import.query("duis aute irure", [310758134], {"showImportResult": false})