---
title: "Map Custom Field"
method: POST
path: "/field_mappings/map"
tags: ["fieldMappings"]
---

# Map Custom Field

`POST /field_mappings/map`

## Request body

- MapFieldToProviderDto
  - `attributeId` string, nullable, required — The attribute ID
  - `source_custom_field_id` string, nullable, required — The source custom field ID
  - `source_provider` string, nullable, required — The source provider
  - `linked_user_id` string, nullable, required — The linked user ID

## Response `201`

- CustomFieldResponse
  - `id_attribute` string, nullable, required — Attribute Id
  - `status` string, nullable, required — Attribute Status
  - `ressource_owner_type` string, nullable, required — Attribute Ressource Owner Type
  - `slug` string, nullable, required — Attribute Slug
  - `description` string, nullable, required — Attribute Description
  - `data_type` 'string' | 'number', nullable, required — Attribute Data Type
  - `remote_id` string, nullable, required — Attribute Remote Id
  - `source` string, nullable, required — Attribute Source
  - `id_entity` string, nullable, required — Attribute Entity Id
  - `id_project` string, nullable, required — Attribute Project Id
  - `scope` string, nullable, required — Attribute Scope
  - `id_consumer` string, nullable, required — Attribute Consumer Id
  - `created_at` string, date-time, nullable, required — Attribute Created Date
  - `modified_at` string, date-time, nullable, required — Attribute Modified Date

## Changes

- **2024-08-05** `ca0fa45ebd05` — 2 warning
  - added the new `number` enum value to the `data_type` response property for the response status `201`
  - added the new `string` enum value to the `data_type` response property for the response status `201`
- **2024-08-05** `ca213ae36b7f` — 1 info
  - endpoint added
- **2024-08-05** `167edd5346ec` — 1 breaking
  - api path removed without deprecation
- **2024-08-03** `9d25bd589fe9` — 5 info
  - the request property `attributeId` became nullable
  - the request property `linked_user_id` became nullable
  - the request property `source_custom_field_id` became nullable
  - the request property `source_provider` became nullable
  - …1 more
- **2024-08-01** `f48b82299d9d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/panoratech/apis/panora-api-2/changes/field_mappings/map/post.md)

---

[API](https://skmtc.dev/panoratech/apis/panora-api-2.md) · [All operations](https://skmtc.dev/panoratech/apis/panora-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/panoratech/panora-api-2/revisions/ef360d76c658/schema)
