Hi Team ,
I am trying to remove timestamp in log call when i gave timestamp as 0 or “” or null , But No luck , it always throw Error 400 Bad Request
{
"engagement":{
"portalId":null,
"createdAt":null,
"lastUpdated":null,
"ownerId":null,
"type":"CALL",
"timestamp":"",
"createdBy":null,
"modifiedBy":null,
"id":null,
"active":null
},
"associations":{
"contactIds":[
151
]
},
"metadata":{
"toNumber":null,
"fromNumber":null,
"status":null,
"durationMilliseconds":null,
"recordingUrl":null,
"body":null,
"disposition":""
}
}Response :{"status": "error","message": "Timestamp 0 cannot be less than 1","correlationId": "d44934d0-b9e7-4ded-b103-e9184dd13412","requestId": "85ccb32c-c24d-4f98-b93a-cf19c82e3520"}
Hello @ArunrajManrajan
Use of timestamp parameter in creating engagements is for setting the due date for the same. HubSpot uses this date/time parameter for logical ordering.
If you do not want to save it, try to remove the parameter in the request instead of making it 0 or NULL. Or you can set it with nay future timestamp value.
Thanks
Hi @himanshurauthan
Thanks for your reply . Due date is not removed in hubspot crm even i removed it from request payload .Can you check once
{
"engagement":{
"portalId":null,
"createdAt":null,
"lastUpdated":null,
"ownerId":null,
"type":"CALL",
"createdBy":null,
"modifiedBy":null,
"id":null,
"active":null
},
"associations":{
"contactIds":[
151
]
},
"metadata":{
"toNumber":null,
"fromNumber":null,
"status":null,
"durationMilliseconds":null,
"recordingUrl":null,
"body":"testedAnjana",
"disposition":""
}
}
Hello @ArunrajManrajan
I was able to create new call type TASK by passing only these parameters:
$task_details = array(
“engagement” => array(
“active” => true,
“type” => “CALL”,
),
“metadata” => array(
“body” => “”,
)
);
Hi @himanshurauthan
Issue : Timestamp/Due Date is not removed in hubspot crm even it was created or updated without timestamp through REST API.
NOTE :
Created without DueDate -- CRM automatically set duedate as Today date .
Updated without Duedate --- CRM automatically set duedate as previous duedate. ie no change in due date .
I want to remove Date field using REST UPDATE API
Can you check once ..? Is Date value removed from huspot crm ?
Hello @ArunrajManrajan
As per my understanding, you do not want to give any date value in the tasks right? And for doing so, sending NULL values for that.
Yes @himanshurauthan . Is this possible ?
No @ArunrajManrajan
As on not sending any value for these fields, the API will consider a value ( most probably tomorrow date) and attach to tasks.
The tasks need due date for some functional logics and hence cannot be kept empty.
Thanks