Created
July 28, 2025 21:00
-
-
Save HubSpotHanevold/89fb62330f9cd07677191ba7b18e9f99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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