Skip to content

Instantly share code, notes, and snippets.

@HubSpotHanevold
Created July 28, 2025 21:00
Show Gist options
  • Save HubSpotHanevold/89fb62330f9cd07677191ba7b18e9f99 to your computer and use it in GitHub Desktop.
Save HubSpotHanevold/89fb62330f9cd07677191ba7b18e9f99 to your computer and use it in GitHub Desktop.
const axios = require('axios');
// PUT THE FROMS/TOS IN THIS DATA VARIABLE
let data = JSON.stringify({
"inputs": [
{
"from": {
"id": "40715675193"
},
"to": {
"id": "11746089350"
}
}
]
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.hubapi.com/crm/v4/associations/deal/[PUT THE CUSTOM OBJECT ID FOR CONFERENCES HERE]/batch/associate/default',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer TEST'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment