curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products[
{
"name": "name",
"value": "A new product"
},
{
"name": "description",
"value": "A description of this product."
},
{
"name": "price",
"value": "27.50"
},
{
"name": "recurringbillingfrequency",
"value": "quarterly"
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "price",
"value": "27.50",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "27.50",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "name",
"value": "A new product",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "A new product",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "description",
"value": "A description of this product.",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "A description of this product.",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "recurringbillingfrequency",
"value": "quarterly",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "quarterly",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
}
]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[
{
"name": "name",
"value": "A new product"
},
{
"name": "description",
"value": "A description of this product."
},
{
"name": "price",
"value": "27.50"
},
{
"name": "recurringbillingfrequency",
"value": "quarterly"
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "price",
"value": "27.50",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "27.50",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "name",
"value": "A new product",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "A new product",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "description",
"value": "A description of this product.",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "A description of this product.",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "recurringbillingfrequency",
"value": "quarterly",
"timestamp": 1525287096980,
"source": "API",
"sourceVid": []
}
],
"value": "quarterly",
"timestamp": 1525287096980,
"source": "API",
"sourceId": null
}
]Scope requirements
Successful response - Update a group of existing products
The response is of type object.
Was this page helpful?