---
title: "Update the coach's post-call CRM deal-stage sync config"
method: PUT
path: "/api/coaches/post-call-deal-sync"
tags: ["Coach profile"]
---

# Update the coach's post-call CRM deal-stage sync config

`PUT /api/coaches/post-call-deal-sync`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/coaches/post-call-deal-sync`
- Auth: API key in cookie `luca.session_token`

Saves the outcome-to-deal-stage mapping. You'll get a 404 with `crm_not_connected` when no CRM is connected.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Headers

- `Luca-API-Version` '1'

## Request body

- PostCallDealSync
  - `enabled` boolean
  - `associateNote` boolean
  - `stageMapping` object
    - `won` string, nullable
    - `lost` string, nullable
    - `not_a_fit` string, nullable

## Response `200`

ok

- PostCallDealSync
  - `enabled` boolean
  - `associateNote` boolean
  - `stageMapping` object
    - `won` string, nullable
    - `lost` string, nullable
    - `not_a_fit` string, nullable

## Other responses

- `400`: bad request
- `401`: unauthorized
- `404`: not found
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
