---
title: "Update Lead Docket Mapping"
method: PATCH
path: "/lead-docket/mappings/{mapping_id}"
tags: ["Lead Docket"]
---

# Update Lead Docket Mapping

`PATCH /lead-docket/mappings/{mapping_id}`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/lead-docket/mappings/{mapping_id}`
- Auth: none declared

## Path parameters

- `mapping_id` string, uuid, required

## Request body

- LeadDocketFieldMappingUpdate
  - `ld_field_name` string, nullable
  - `source_type` 'lead_field' | 'constant' | 'questionnaire_field', nullable
  - `source_key` string, nullable
  - `constant_value` string, nullable
  - `display_order` integer, nullable

## Response `200`

Successful Response

- LeadDocketFieldMappingItem
  - `lead_docket_field_mapping_id` string, uuid, required
  - `ld_field_name` string, required
  - `source_type` 'lead_field' | 'constant' | 'questionnaire_field', required
  - `source_key` string, required
  - `constant_value` string, nullable
  - `display_order` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-16** `b9fb57688def`: 1 warning, 1 info
  - added the new `questionnaire_field` enum value to the `source_type` response property for the response status `200`
  - added the new `questionnaire_field` enum value to the request property `source_type/anyOf[subschema #1]/`

[Operation history](https://skmtc.dev/openintake/apis/openintake-api/changes/lead-docket/mappings/:mapping_id/patch.md)

---

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