Error Creating New Event and Posting to Timeline


ISSUE RESOLVED************
Using CURL i am able to create a new event, however when I use node.js I get the following error:

“status”: “error”,
“message”: “Request implies conflicting values for hub-id: <developer_portal_hubId> from [hapikey (**********)] vs. from oauth-token (********************************)”,
“correlationId”: “95dc96a0-4f98-4b0a-97f9-4392fed8023c”,
“requestId”: “f0b6d0d4d29c1b89f2a397785a968d74”
I am trying to post the event to my Test Portal.

Here is my code:

var eventType = querystring.stringify({
“name” : “LOREM IPSUM”,
“applicationId”: appId,
“headerTemplate”: “{userfname} interacted with with : {response}”,
“detailTemplate”: “{userfname} interacted at {{#formatDate timestamp}}{{/formatDate}} with : {response}”,
“objectType”: “CONTACT”
var path = “/integrations/v1/”+appId+"/timeline/event-types?userId=&hapikey=";
console.log("tokendata.access_token: "+tokendata.access_token);
var auth = "Bearer "+ tokendata.access_token;
var post_options = {
“hostname”: hostForHubspot,
“path”: path,
“method”: “POST”,
“headers”: {
“Content-Length”: Buffer.byteLength(eventType),
“Authorization” :auth
// Set up the request
var post_req = http.request(post_options, function(res) {

post_req.on(‘error’, function(e){
console.log(“problem with request: e.message}”);

ISSUE RESOLVED************