Cancel import
Stops an import that is queued or running and wipes its key. What it already brought over stays.
opensend.imports.cancel(id)opensend imports cancelInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"import"Always
import.idstringThe id of the import.
sourcestringThe service it reads the account from:
resend.One of
resendstatusstringWhere it stands:
queuedbefore it starts,runningwhile it reads, thencompleted,failedorcanceled.One of
queuedrunningcompletedfailedcanceledresourcesstring[]What was asked for, in the order it is done.
One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsstepstring | nullWhat is being read right now, or
null.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsreportobject[]One entry for each thing that was asked for, with what came over and what did not.
report[].resourcestringWhat was read:
domains,suppressions,audiences,contacts,templates,broadcasts,webhooksorapi_keys.One of
domainssuppressionsaudiencescontactstemplatesbroadcastswebhooksapi_keystopicscontact_propertiesautomationseventsreport[].foundintegerHow many the other account has, as far as the import has read.
report[].createdintegerHow many were made here.
report[].reusedintegerHow many were here already, from an earlier import or under the same name.
report[].skippedintegerHow many were left out. The notes say why.
report[].notesobject[]What was left out or changed on the way, each with its reason. The first 50 are kept.
report[].notes[].namestringWhat the note is about: a domain, a template, an address.
report[].notes[].reasonstringWhat happened to it, and what to do about it when there is something.
errorstring | nullWhy it failed, or what it is waiting on before it tries again.
nullotherwise.createdAtstringWhen the import was started.
finishedAtstring | nullWhen it ended, or
nullwhile it runs.