---
title: "Update Entity Field Mapping"
method: PUT
path: "/v2/entity-field-mappings/{id}"
tags: ["Entity Field Mapping API"]
---

# Update Entity Field Mapping

`PUT /v2/entity-field-mappings/{id}`

Update a field mapping's external field path and/or precedence. Omitted fields are left unchanged. Takes effect on the next sync of the ingestion config.

## Path parameters

- `id` string, required — The ID of the field mapping to update.

## Request body

- object
  - `externalFieldPath` string, nullable — New external field path. Omit to leave unchanged.
  - `priority` number, double, nullable — New precedence. Omit to leave unchanged.

## Response `200`

Success

- SvstorePublicapiUpdateEntityFieldMappingResponse
  - `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)
