---
title: "Update Mailing List Import"
method: POST
path: "/print-mail/v1/mailing_list_imports/{id}"
tags: ["Mailing List Imports"]
---

# Update Mailing List Import

`POST /print-mail/v1/mailing_list_imports/{id}`

Update an existing mailing list import.

## Path parameters

- `id` string, required

## Request body

- MailingListImportUpdate — Parameters for updating an existing mailing list import.
  - `description` string, nullable — An optional description for the import. Set to `null` to remove the existing description.
  - `metadata` object, nullable — Optional key-value data associated with the import. Set to `null` to remove existing metadata.

## Response `200`

The updated mailing list import details.

- MailingListImportResponse — Read-only view of a MailingListImport
  - `id` string, required — A unique ID prefixed with mailing_list_import_
  - `description` string — An optional string describing this resource. Will be visible in the API and the dashboard.
  - `metadata` object — See the section on Metadata.
  - `live` boolean, required — `true` if this is a live mode resource else `false`.
  - `createdAt` string, date-time, required — The UTC time at which this resource was created.
  - `updatedAt` string, date-time, required — The UTC time at which this resource was last updated.
  - `status` 'validating' | 'completed' | 'changes_required', required — Status of the mailing list import process.
  - `reportURL` string, uri — A temporary URL to download the processing report, available once the import is completed.
  - `errors` MailingListImportProcessError[], required — A list of processing errors encountered, if any. Present when status is 'changes_required'.
    - `type` 'no_valid_contacts_error' | 'multiple_countries_error' | 'invalid_contact_count_error' | 'internal_service_error', required — Type of error encountered during import processing.
    - `message` string, required — A human-readable message describing the error.
  - `notes` Note[], required — Additional notes about the import process.
    - `type` 'truncated_test_file' | 'skipped_invalid_contacts', required — Type of note attached to the import process.
    - `message` string, required — A human-readable message describing the note.
  - `validRowCount` integer, required — Number of valid rows processed from the file.
  - `invalidRowCount` integer, required — Number of invalid rows found in the file.
  - `receiverStatusCount` VerificationStatusCount, required — Count of contact verification statuses.
    - `verifiedCount` integer, required — Number of contacts that were verified without changes.
    - `correctedCount` integer, required — Number of contacts that were corrected during verification.
    - `failedCount` integer, required — Number of contacts that failed verification.
  - `senderStatusCount` VerificationStatusCount — Count of contact verification statuses.
    - `verifiedCount` integer, required — Number of contacts that were verified without changes.
    - `correctedCount` integer, required — Number of contacts that were corrected during verification.
    - `failedCount` integer, required — Number of contacts that failed verification.
  - `organization` string, required — The organization that owns this import.
  - `file` MailingListImportResponseFile, required — The file object your controller returns: all the mappings plus a signed URL.
    - `fileType` 'csv', required — Type of file supported for mailing list imports.
    - `receiverAddressMapping` object, required — Mapping of columns for receiver addresses. Contact fields to file columns. Possible Contact fields: - description - firstName - lastName - email - phoneNumber - companyName - addressLine1 - addressLine2 - jobTitle - city - postalOrZip - provinceOrState - countryCode
    - `receiverMergeVariableMapping` object — Optional mapping of columns for receiver merge variables.
    - `senderAddressMapping` object — Optional mapping of columns for sender addresses.
    - `senderMergeVariableMapping` object — Optional mapping of columns for sender merge variables.
    - `url` string, uri, required — The signed URL your controller generates.

## Other responses

- `400` — The updated mailing list import details.
- `401` — The updated mailing list import details.
- `404` — The updated mailing list import details.
- `422` — The updated mailing list import details.
- `429` — The updated mailing list import details.
- `500` — The updated mailing list import details.

---

[API](https://skmtc.net/postgrid/apis/postgrid-print-mail-api.md) · [All operations](https://skmtc.net/postgrid/apis/postgrid-print-mail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/postgrid/postgrid-print-mail-api/versions/6bb9d268c5d1/schema)
