---
title: "Create Entity Field Mapping"
method: POST
path: "/v2/entity-field-mappings"
tags: ["Entity Field Mapping API"]
---

# Create Entity Field Mapping

`POST /v2/entity-field-mappings`

Create a field mapping binding an external source field (from an ingestion config's discovered external schema) to an internal entity-type field. Takes effect on the next sync of the ingestion config.

## Request body

- SvstorePublicapiCreateEntityFieldMappingRequest
  - `ingestionConfigId` string — The ingestion config that provides the source data (required). The mapping binds to this config's most recently discovered external schema; a sync must have run first (otherwise NOT_FOUND).
  - `internalFieldId` string — The internal entity-type field to populate (required).
  - `externalFieldPath` string — Dot-notation path into the external record, e.g. "general.platform" (required). Read the available paths via GetExternalEntitySchema.
  - `priority` number, double, nullable — Precedence when multiple sources map to the same internal field (higher wins). Defaults to 1.0.

## Response `200`

Success

- SvstorePublicapiCreateEntityFieldMappingResponse
  - `data` SvstoreEntityFieldMapping — EntityFieldMapping is the public, Terraform-shaped view of a source field mapping: it binds an external field (discovered in an ingestion config's external schema) to an internal entity-type field. When several sources map to the same internal field, `priority` decides precedence (higher wins). The mapping is keyed publicly by the stable `ingestion_config_id` rather than the internal (versioned) external-schema id.
    - `id` string
    - `ingestionConfigId` string — The ingestion config whose discovered source this mapping draws from.
    - `internalFieldId` string — The internal entity-type field that receives the value.
    - `externalFieldPath` string — Dot-notation path into the external record (e.g. "general.platform").
    - `priority` number, double — Precedence when multiple sources map to the same internal field (higher wins). Defaults to 1.0.
    - `createdAt` string, date-time — A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").
    - `updatedAt` string, date-time — A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").

## Other responses

- `default` — Error

---

[API](https://skmtc.net/serval/apis/serval-public-api.md) · [All operations](https://skmtc.net/serval/apis/serval-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serval/serval-public-api/versions/0549515e9384/schema)
