---
title: "Get patch mapping"
method: GET
path: "/schema/patch/{table}/{id}/mapping/{mapping_id}"
tags: ["Schema Patches"]
---

# Get patch mapping

`GET /schema/patch/{table}/{id}/mapping/{mapping_id}`

## Request

- Base URL: `https://api.lytics.io/v2`
- URL: `https://api.lytics.io/v2/schema/patch/{table}/{id}/mapping/{mapping_id}`
- Auth: API key in header `Authorization`

Retrieves a specific mapping from a patch. If the mapping is not in the patch, retrieves it from the live schema.

## Path parameters

- `table` string, required
- `id` string, required
- `mapping_id` string, required

## Query parameters

- `account_id` string

## Response `200`

Mapping definition

- object
  - `_meta` object: Response Metadata
  - `data` object: Response Payload
    - `created` string, date-time
    - `edit_status` string
    - `expr` string: The LQL expression for the mapping
    - `field` string, required: The target field of the mapping
    - `guard_expr` string: The LQL Guard expression for the mapping
    - `id` string: The ID of the mapping
    - `managed_by` string
    - `modified` string, date-time
    - `stream` string: The stream associated with the mapping
  - `request_id` string
  - `status` integer: HTTP Status Code

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-11-03** `d8e975057aec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lytics/apis/lytics-api/changes/schema/patch/:table/:id/mapping/:mapping_id/get.md)

---

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