Generate export target column mappings¶
Generate export column-mapping suggestions for a MatrixOne target table.
POST https://moi.matrixorigin.cn/newmoi/connectors/mo/column/mapping
Before you call¶
Confirm the target MatrixOne connector, database, and table. Prepare a personal access token, workspace ID, and connector ID.
Request example¶
curl -X POST "https://moi.matrixorigin.cn/newmoi/connectors/mo/column/mapping" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d "{
\"connector_id\": \"$CONNECTOR_ID\",
\"database\": \"analytics\",
\"table\": \"orders\",
\"export_columns\": {\"source_id\": \"id\"}
}"
Request body¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
MatrixOne connector ID. |
|
string |
Yes |
Target database name. |
|
string |
Yes |
Target table name. |
|
object |
Yes |
Mapping of source column names to target column names. |
Successful response¶
A successful response returns column-mapping suggestions. Before using them to configure an export task, verify the intended meaning of the source and target columns.
Error response¶
If the connector, database, table, or column mapping is invalid, check the request body and retry.
Last updated on