curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/change-log/tickets
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/change-log/tickets\n\nExample response:\n[\n {\n \"timestamp\": 1525297495553,\n \"changeType\": \"CHANGED\",\n \"objectId\": 176602,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"content\",\n \"status\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n },\n {\n \"timestamp\": 1525297514887,\n \"changeType\": \"CHANGED\",\n \"objectId\": 176602,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"content\",\n \"status\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n },\n {\n \"timestamp\": 1525298220133,\n \"changeType\": \"CHANGED\",\n \"objectId\": 194042,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"subject\",\n \"created_by\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n }\n]\n\nRequest URL for the next request,to only get items that changed\nafter the most recent change in the previous request:\nhttps://api.hubapi.com/crm-objects/v1/change-log/tickets?timestamp=1525298220133&changeType=CHANGED&objectId=194042\n\nExample response:\n[\n {\n \"timestamp\": 1525298357009,\n \"changeType\": \"CREATED\",\n \"objectId\": 217650,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"subject\",\n \"createdate\",\n \"source_type\",\n \"created_by\",\n \"content\",\n \"status\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n }\n]\n\nNext request URL:\nhttps://api.hubapi.com/crm-objects/v1/change-log/tickets?timestamp=1525298357009&changeType=CREATED&objectId=217650\n"
Create a new ticket. The request body should be a list of ticket properties you want to set for the new ticket, with each entry being the internal name of the property to be set, and the value of that property. You must set the ticket pipeline and stage when creating a new ticket. Please see the example for more details.
curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/change-log/tickets
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/change-log/tickets\n\nExample response:\n[\n {\n \"timestamp\": 1525297495553,\n \"changeType\": \"CHANGED\",\n \"objectId\": 176602,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"content\",\n \"status\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n },\n {\n \"timestamp\": 1525297514887,\n \"changeType\": \"CHANGED\",\n \"objectId\": 176602,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"content\",\n \"status\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n },\n {\n \"timestamp\": 1525298220133,\n \"changeType\": \"CHANGED\",\n \"objectId\": 194042,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"subject\",\n \"created_by\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n }\n]\n\nRequest URL for the next request,to only get items that changed\nafter the most recent change in the previous request:\nhttps://api.hubapi.com/crm-objects/v1/change-log/tickets?timestamp=1525298220133&changeType=CHANGED&objectId=194042\n\nExample response:\n[\n {\n \"timestamp\": 1525298357009,\n \"changeType\": \"CREATED\",\n \"objectId\": 217650,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"subject\",\n \"createdate\",\n \"source_type\",\n \"created_by\",\n \"content\",\n \"status\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n }\n]\n\nNext request URL:\nhttps://api.hubapi.com/crm-objects/v1/change-log/tickets?timestamp=1525298357009&changeType=CREATED&objectId=217650\n"
Successful response - Create a new ticket
The response is of type object
.
Was this page helpful?