---
title: "POST /v1/{+parent}/mappingRules:import"
method: POST
path: "/v1/{+parent}/mappingRules:import"
tags: ["projects"]
---

# POST /v1/{+parent}/mappingRules:import

`POST /v1/{+parent}/mappingRules:import`

Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.

## Path parameters

- `parent` string, required

## Request body

- ImportMappingRulesRequest — Request message for 'ImportMappingRules' request.
  - `rulesFiles` RulesFile[] — Required. One or more rules files.
    - `rulesSourceFilename` string — Required. The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.
    - `rulesContent` string — Required. The text content of the rules that needs to be converted.
  - `autoCommit` boolean — Required. Should the conversion workspace be committed automatically after the import operation.
  - `rulesFormat` 'IMPORT_RULES_FILE_FORMAT_UNSPECIFIED' | 'IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE' | 'IMPORT_RULES_FILE_FORMAT_ORATOPG_CONFIG_FILE' — Required. The format of the rules content file.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/datamigration.md) · [All operations](https://skmtc.dev/google/apis/datamigration/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/datamigration/revisions/d77bd66e25e6/schema)
