curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products/batch-create[
{
"name": "name",
"value": "Another new product"
},
{
"name": "description",
"value": "A description of yet another product."
},
{
"name": "price",
"value": "250.00"
},
{
"name": "recurringbillingfrequency",
"value": "annually"
},
{
"name": "name",
"value": "A second new product"
},
{
"name": "description",
"value": "A description the second new product."
},
{
"name": "price",
"value": "75.00"
},
{
"name": "recurringbillingfrequency",
"value": "hourly"
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "price",
"value": "250.00",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "250.00",
"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": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"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
},
{
"versions": [
{
"name": "recurringbillingfrequency",
"value": "annually",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "annually",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "price",
"value": "75.00",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "75.00",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"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": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"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": "recurringbillingfrequency",
"value": "hourly",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "hourly",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
}
]Delete a group of existing products. Up to 100 products can be deleted in a single request. Note: This action cannot be undone. Deleted products cannot be updated and there is no way to restore them
curl --request POST \
--url https://api.hubapi.com/crm-objects/v1/objects/products/batch-create[
{
"name": "name",
"value": "Another new product"
},
{
"name": "description",
"value": "A description of yet another product."
},
{
"name": "price",
"value": "250.00"
},
{
"name": "recurringbillingfrequency",
"value": "annually"
},
{
"name": "name",
"value": "A second new product"
},
{
"name": "description",
"value": "A description the second new product."
},
{
"name": "price",
"value": "75.00"
},
{
"name": "recurringbillingfrequency",
"value": "hourly"
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "price",
"value": "250.00",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "250.00",
"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": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"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
},
{
"versions": [
{
"name": "recurringbillingfrequency",
"value": "annually",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "annually",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
{
"versions": [
{
"name": "price",
"value": "75.00",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "75.00",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
},
{
"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": "createdate",
"value": "0",
"timestamp": 0,
"source": "API",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"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": "recurringbillingfrequency",
"value": "hourly",
"timestamp": 1525289943771,
"source": "API",
"sourceVid": []
}
],
"value": "hourly",
"timestamp": 1525289943771,
"source": "API",
"sourceId": null
}
]Scope requirements
Successful response - Delete a group of existing products
The response is of type object.
Was this page helpful?