Creating Mapper

The create_mapper method is used to create a new metadata mapper in CatalogLake. This mapper is responsible for defining and managing metadata keys and their relationships.

Payload Example

create_mapper_payload = {
    "mapper_name": "mapper_name",
    "customer_id": "121287096096",
    "language": "en-us",
    "metadata_keys": [
        "address of manufacturer",
        "fssai number",
        "marketing_fssai_num",
        "fabric_colour"
    ]
}

Usage example

create_mapper_result = cataloglake.create_mapper(create_mapper_payload)
print(create_mapper_result)

Example Response

{
  "request_id": "46e7a4d1-d733-4f03-acf6-1d3391164265",
  "customer_id": "121287096096",
  "metadata_mapper_id": "287b05a6-ff14-4b5f-a81d-f247b5bffcdd",
  "metadata_keymap": [
    {
      "address of manufacturer": "manufacturer_address",
      "fssai number": "fssai_number",
      "marketing_fssai_num": "marketing_fssai_number",
      "fabric_colour": "colour"
    }
  ]
}

Last updated