Field Mappings
Map Custom Field
Core Resources
- Connections
- Webhooks
- Field Mappings
- Linked Users
- Projects
- Events
- Passthrough
Field Mappings
Map Custom Field
POST
/
field_mappings
/
map
import { Panora } from "@panora/sdk";
const panora = new Panora({
apiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await panora.fieldMappings.map({
attributeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
sourceCustomFieldId: "id_1",
sourceProvider: "hubspot",
linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
});
// 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
Body
application/json
Response
201 - application/json
The response is of type object
.
Was this page helpful?
import { Panora } from "@panora/sdk";
const panora = new Panora({
apiKey: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await panora.fieldMappings.map({
attributeId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
sourceCustomFieldId: "id_1",
sourceProvider: "hubspot",
linkedUserId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
});
// 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"
}