Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Cancel an import awaiting field setup

DELETE
/api/v3/contacts/imports/{importUniqueId}/field-setup
curl --request DELETE \
--url 'https://api.tryletterhead.com/api/v3/contacts/imports/example/field-setup?api=true' \
--header 'Authorization: Bearer <token>'

Cancels an import whose status is needsFieldSetup. Its status becomes cancelled. Nothing from the file had been imported, so nothing is undone. Works even when the upload has expired.

Returns 409 when the import is no longer waiting on field setup.

This is a company-level (v3) write. Authenticate with a company API key as a Bearer token.

importUniqueId
required
string

The import’s unique identifier, from List subscriber imports.

api
required
boolean

Required. Set to true to authenticate with an API key.

Import cancelled.

Media type application/json
object
items
nullable
message
string
total
integer
Example
{
"items": null,
"message": "Import cancelled.",
"total": 1
}

Still can’t find what you need? Contact support.