curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products/batch-read[
{
"ids": [
1645187,
1642796
]
},
{
"objectType": "PRODUCT",
"portalId": 62515,
"objectId": 1642796,
"properties": {},
"version": 1,
"isDeleted": false
},
{
"objectType": "PRODUCT",
"portalId": 62515,
"objectId": 1645187,
"properties": {},
"version": 1,
"isDeleted": false
},
{
"ids": [
1645187,
1642796
]
},
{
"versions": [
{
"name": "name",
"value": "A second new product",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "A second new product",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "description",
"value": "A description the second new product.",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "A description the second new product.",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "name",
"value": "Another new product",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "Another new product",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "description",
"value": "A description of yet another product.",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "A description of yet another product.",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
}
]Create a group of products. Up to 100 products can be created in a single request. The request body will be an array, with each entry being a list of properties you want to set for each new product. Please see the example for more details.
curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products/batch-read[
{
"ids": [
1645187,
1642796
]
},
{
"objectType": "PRODUCT",
"portalId": 62515,
"objectId": 1642796,
"properties": {},
"version": 1,
"isDeleted": false
},
{
"objectType": "PRODUCT",
"portalId": 62515,
"objectId": 1645187,
"properties": {},
"version": 1,
"isDeleted": false
},
{
"ids": [
1645187,
1642796
]
},
{
"versions": [
{
"name": "name",
"value": "A second new product",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "A second new product",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "description",
"value": "A description the second new product.",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "A description the second new product.",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "name",
"value": "Another new product",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "Another new product",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "description",
"value": "A description of yet another product.",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "A description of yet another product.",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
}
]Scope requirements
Successful response - Create a group of products
The response is of type object.
Was this page helpful?