You are reading the documentation for an outdated Corteza release. 2024.9 is the latest stable Corteza release.
Used variables
# Base url for the federation api
$BASE_URL

# JWT of the user
$JWT

# Node id of the destination node
$NODE_ID

# Federation module id
$MODULE_ID
Example request
curl -X PUT "$BASE_URL/federation/nodes/$NODE_ID/modules/$MODULE_ID/mapped" \
  -H "Authorization: Bearer $JWT"
  -H "Content-Type: application/json" \
  --data "{
    \"composeModuleID\": \"212492028292890627\",
    \"composeNamespaceID\": \"212492019702956035\",
    \"fields\": [
        {
            \"origin\": {
                \"kind\": \"String\",
                \"name\": \"AccountName\",
                \"label\": \"Account Name\",
                \"isMulti\": false
            },
            \"destination\": {
                \"kind\": \"String\",
                \"name\": \"AccountName\",
                \"label\": \"Account Name\",
                \"isMulti\": false
            }
        },
        {
            \"origin\": {
                \"kind\": \"String\",
                \"name\": \"BillingCity\",
                \"label\": \"Billing City\",
                \"isMulti\": false
            },
            \"destination\": {
                \"kind\": \"String\",
                \"name\": \"BillingCity\",
                \"label\": \"Billing City\",
                \"isMulti\": false
            }
        }
    ]
}";
Example response
{
    "response": {
        "nodeID": "218931887727443971",
        "federationModuleID": "220434607579922435",
        "composeModuleID": "212492028292890627",
        "composeNamespaceID": "212492019702956035",
        "fields": [
            {
                "origin": {
                    "kind": "String",
                    "name": "AccountName",
                    "label": "Account Name",
                    "isMulti": false
                },
                "destination": {
                    "kind": "String",
                    "name": "AccountName",
                    "label": "Account Name",
                    "isMulti": false
                }
            },
            {
                "origin": {
                    "kind": "String",
                    "name": "BillingCity",
                    "label": "Billing City",
                    "isMulti": false
                },
                "destination": {
                    "kind": "String",
                    "name": "BillingCity",
                    "label": "Billing City",
                    "isMulti": false
                }
            }
        ]
    }
}