---
title: "Preview"
method: POST
path: "/admin/crm/maintenance-optout-migrations/preview"
tags: ["admin", "crm"]
---

# Preview

`POST /admin/crm/maintenance-optout-migrations/preview`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/crm/maintenance-optout-migrations/preview`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- MaintenanceOptoutMigrationRequest
  - `organization_id` string, required
  - `entries` MaintenanceOptoutMigrationEntry[], required
    - `source_request_id` string, required
    - `maintenance_type_id` string, nullable
    - `maintenance_type_ids` string[]
    - `evidence_event_ids` string[]
    - `evidence_notes` MaintenanceOptoutNoteEvidence[]
      - `kind` 'customer_note' | 'location_note', required
      - `id` integer, required
    - `expiry_mode` 'preserve' | 'until_lifted' | 'until_date'
    - `expires_at` string, date-time, nullable
    - `review_reason` string, required

## Response `200`

Successful Response

- MaintenanceOptoutMigrationPreview
  - `organization_id` string, required
  - `review_sha256` string, required
  - `items` MaintenanceOptoutMigrationItem[], required
    - `source_request_id` string, required
    - `contact_id` string, required
    - `customer_id` integer, required
    - `source_campaign_id` string, required
    - `maintenance_type_id` string, required
    - `maintenance_name` string, required
    - `evidence_engagement_id` string, nullable, required
    - `customer_statement` string, required
    - `expires_at` string, date-time, nullable, required
    - `source_expires_at` string, date-time, nullable
    - `expiry_mode` 'preserve' | 'until_lifted' | 'until_date'
    - `evidence_kind` 'customer_message' | 'staff_note'

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/cce8b07a5787?raw)
