---
title: "Preview partner coach CSV upload"
method: POST
path: "/api/cohorts/{cohortId}/coaches/upload/preview"
tags: ["Cohort Coaches"]
---

# Preview partner coach CSV upload

`POST /api/cohorts/{cohortId}/coaches/upload/preview`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/cohorts/{cohortId}/coaches/upload/preview`
- Auth: none declared

Validates CSV rows, classifies duplicates, and returns counts + per-row results without persisting changes.

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `mappings` object[], required
    - `csvColumn` string
    - `targetField` 'first_name' | 'last_name' | 'email' | 'phone' | 'city' | 'state_region' | 'country' | 'timezone', nullable
  - `csvData` array[], required
    - string[]

## Response `200`

Preview results

## Other responses

- `400`: Missing required mappings or cohort has no partner
- `404`: Cohort not found

---

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