Example PUT URL:
https://api.hubapi.com/crm-objects/v1/objects/line_items/9890010
Example PUT data (updating two properties):
[
{
"name": "description",
"value": "An updated description for this line item. Updating the quantity."
},
{
"name": "quantity",
"value": "5"
}
]
Example response:
{
"objectType": "LINE_ITEM",
"portalId": 62515,
"objectId": 9890010,
"properties": {
"amount": {
"versions": [
{
"name": "amount",
"value": "137.50",
"timestamp": 0,
"sourceId": "LineItemAmountCalculator",
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "137.50",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": "LineItemAmountCalculator"
},
"quantity": {
"versions": [
{
"name": "quantity",
"value": "5",
"timestamp": 1525371765869,
"source": "API",
"sourceVid": []
}
],
"value": "5",
"timestamp": 1525371765869,
"source": "API",
"sourceId": null
},
"hs_lastmodifieddate": {
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceVid": []
}
],
"value": "0",
"timestamp": 0,
"source": "CALCULATED",
"sourceId": null
},
"price": {
"versions": [
{
"name": "price",
"value": "27.50",
"timestamp": 1525359863627,
"source": "API",
"sourceVid": []
}
],
"value": "27.50",
"timestamp": 1525359863627,
"source": "API",
"sourceId": null
},
"description": {
"versions": [
{
"name": "description",
"value": "An updated description for this line item. Updating the quantity.",
"timestamp": 1525371765869,
"source": "API",
"sourceVid": []
},
{
"name": "description",
"value": "A description of this product.",
"timestamp": 1525359863627,
"source": "API",
"sourceVid": []
}
],
"value": "An updated description for this line item. Updating the quantity.",
"timestamp": 1525371765869,
"source": "API",
"sourceId": null
},
"hs_product_id": {
"versions": [
{
"name": "hs_product_id",
"value": "1688960",
"timestamp": 1525371444427,
"source": "API",
"sourceVid": []
}
],
"value": "1688960",
"timestamp": 1525371444427,
"source": "API",
"sourceId": null
}
},
"version": 0,
"isDeleted": false
}