Skip to main content

Create an ERP field-mapping (new version)

POST 

/api/v1/erp-mappings

Required scope: mapping:write. Stores a { erp_column -> field_id } alias map for the calling company under source, as a new monotonic version. Every field_id VALUE is validated against the company's active FormTemplate catalog: an unknown field_id returns 422 UNKNOWN_FIELDS (the whole request is rejected, nothing stored) with details.unknownFieldIds listing ONLY the unresolved field_ids, never the erp_column keys. companyId comes from the key, never the body. Idempotent via Idempotency-Key.

Request

Responses

The created mapping version.