---
title: "Create Mapping"
method: POST
path: "/api/v1/mapping"
tags: ["Mapping"]
---

# Create Mapping

`POST /api/v1/mapping`

Creates a new mapping for a specific flow step.

## Request body

- MappingStoreRequest
  - `flow_version_id` string, required
  - `flow_step_id` string, required
  - `mapping` string
  - `mapping_file` string

## Response `200`

Successful response

- MappingResponse
  - `data` Mapping
    - `id` integer — Unique identifier
    - `flow_version_id` string
    - `flow_step_id` string
    - `mapping` string
    - `mapping_file` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401` — Unauthenticated
- `403` — Unauthorized
- `422` — Validation Error

---

[API](https://skmtc.net/wearepatchworks/apis/patchworks-core-api.md) · [All operations](https://skmtc.net/wearepatchworks/apis/patchworks-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wearepatchworks/patchworks-core-api/revisions/89261af4dd80/schema)
