curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products
"\nExample POST URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/products\n\nExample POST JSON:\n[\n {\n \"name\": \"name\",\n \"value\": \"A new product\"\n },\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\"\n },\n {\n \"name\": \"price\",\n \"value\": \"27.50\"\n },\n {\n \"name\": \"recurringbillingfrequency\",\n \"value\": \"quarterly\"\n }\n]\n\nExample Response:\n{\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {\n \"hs_lastmodifieddate\": {\n \"versions\": [\n {\n \"name\": \"hs_lastmodifieddate\",\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceId\": null\n },\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"createdate\": {\n \"versions\": [\n {\n \"name\": \"createdate\",\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"recurringbillingfrequency\": {\n \"versions\": [\n {\n \"name\": \"recurringbillingfrequency\",\n \"value\": \"quarterly\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"quarterly\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 0,\n \"isDeleted\": false\n}"
Update a group of existing products. Up to 100 products can be updated in a single request. The request body will be an array, with each element containing the ID of the product to update and a list of properties to update for that product. See the examples for details.
curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products
"\nExample POST URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/products\n\nExample POST JSON:\n[\n {\n \"name\": \"name\",\n \"value\": \"A new product\"\n },\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\"\n },\n {\n \"name\": \"price\",\n \"value\": \"27.50\"\n },\n {\n \"name\": \"recurringbillingfrequency\",\n \"value\": \"quarterly\"\n }\n]\n\nExample Response:\n{\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {\n \"hs_lastmodifieddate\": {\n \"versions\": [\n {\n \"name\": \"hs_lastmodifieddate\",\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"CALCULATED\",\n \"sourceId\": null\n },\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"createdate\": {\n \"versions\": [\n {\n \"name\": \"createdate\",\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 0,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"recurringbillingfrequency\": {\n \"versions\": [\n {\n \"name\": \"recurringbillingfrequency\",\n \"value\": \"quarterly\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"quarterly\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 0,\n \"isDeleted\": false\n}"
Successful response - Update a group of existing products
The response is of type object
.
Was this page helpful?