Cancel an import
Stop an import and leave the account as it was before it started.
An import that is writing is undone in the background: everything it wrote is removed, a vault it created is deleted, and the answer is the import, being rolled back.
An import that has not started writing is discarded with its file, and the answer is 204 with no body.
An import that has ended cannot be cancelled, and answers 422.
Path parameters
Sent as JSON. Anything not listed here is ignored.
The id of the import. One belonging to another account answers 404.
Returns
The import object, being rolled back.
The import.
Always account_import. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
Where the import stands: reading, refused, read, writing, rolling_back, rolled_back, rollback_failed or completed. rollback_failed means an undo kept failing and what the import wrote is still in place. Nothing is written into a vault before the file is read and you have chosen where it goes.
What the file is: monica_4 for an export of Monica 4, monica for an export of this application. Null while the file is read, and when it was refused as neither.
Why the file cannot be imported, when the status is refused. Null otherwise.
The vaults this same file was completely imported into before. An import only adds, so importing it again into one of them writes every record a second time.
The id of one of those vaults.
How far the writing has gone.
How many records are written.
How many records there are to write, known once the file is read.
The id of the vault the file is written into, or null until one is chosen.
The id, in the file, of the contact who is you, or null for none. Until you choose, it is the contact the file names as its owner.
When the file was received, as a count of seconds since 1970.
When the import completed or finished being undone, as a count of seconds since 1970, or null.
What the file holds, one entry per kind of record, once it is read. Null while it is read.
One kind of record in the file.
The kind of record, as the file names it: contacts, notes, relationships, audit_logs and so on.
How many the file holds.
How many will not come over, because this product keeps nothing of that kind.
What became of the records of the file, one entry per kind, once the import has completed. Null before that, and for an import that was undone, since nothing of it stayed.
Where to find this record.
The absolute address this record is read from.
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.