POST
/
field_mappings
/
define
import { Panora } from "@panora/sdk";
import { DataType, ObjectTypeOwner } from "@panora/sdk/models/components";

const panora = new Panora({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await panora.fieldMappings.definitions({
    objectTypeOwner: ObjectTypeOwner.Company,
    name: "fav_dish",
    description: "My favorite dish",
    dataType: DataType.String,
  });
  
  // Handle the result
  console.log(result)
}

run();
{
  "id_attribute": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "status": "",
  "ressource_owner_type": "",
  "slug": "fav_dish",
  "description": "My favorite dish",
  "data_type": "string",
  "remote_id": "id_1",
  "source": "hubspot",
  "id_entity": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "scope": "",
  "id_consumer": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "created_at": "2024-10-01T12:00:00Z",
  "modified_at": "2024-10-01T12:00:00Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

201 - application/json

The response is of type object.