curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/change-log/products
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/change-log/products\n\nExample response:\n[\n {\n \"timestamp\": 1525297495553,\n \"changeType\": \"CHANGED\",\n \"objectId\": 1645187,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"price\",\n \"recurringbillingfrequency\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n },\n {\n \"timestamp\": 1525297514887,\n \"changeType\": \"CHANGED\",\n \"objectId\": 1642796,\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\": 1688960,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"price\",\n \"name\"\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/products?timestamp=1525298220133&changeType=CHANGED&objectId=1688960\n\nExample response:\n[\n {\n \"timestamp\": 1525298357009,\n \"changeType\": \"CREATED\",\n \"objectId\": 1645342,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"name\",\n \"description\",\n \"price\",\n \"recurringbillingfrequency\"\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/products?timestamp=1525298357009&changeType=CREATED&objectId=1645342\n"
Create a new product. The request body should be a list of product properties you want to set for the new product, with each entry being the internal name of the property to be set, and the value of that property.
curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/change-log/products
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/change-log/products\n\nExample response:\n[\n {\n \"timestamp\": 1525297495553,\n \"changeType\": \"CHANGED\",\n \"objectId\": 1645187,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"price\",\n \"recurringbillingfrequency\"\n ],\n \"newAssociations\": [],\n \"removedAssociations\": [],\n \"newListMemberships\": [],\n \"removedListMemberships\": []\n }\n },\n {\n \"timestamp\": 1525297514887,\n \"changeType\": \"CHANGED\",\n \"objectId\": 1642796,\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\": 1688960,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"price\",\n \"name\"\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/products?timestamp=1525298220133&changeType=CHANGED&objectId=1688960\n\nExample response:\n[\n {\n \"timestamp\": 1525298357009,\n \"changeType\": \"CREATED\",\n \"objectId\": 1645342,\n \"changes\": {\n \"changedProperties\": [\n \"hs_lastmodifieddate\",\n \"name\",\n \"description\",\n \"price\",\n \"recurringbillingfrequency\"\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/products?timestamp=1525298357009&changeType=CREATED&objectId=1645342\n"
Successful response - Create a new product
The response is of type object
.
Was this page helpful?