APIs & Integrations

clevy
Member

Unable to add a single deal property value with put

SOLVE

Using the URL in the docs to add a new select option results in all the data being replaced by this one entity. Is there another endpoint to add only 1 value to the property

https://api.hubapi.com/properties/v1/deals/properties/named/referral_partner?hapikey=hapikey

{
"name": "referral_partner",
"label": "Lead Source",
"description": "",
"groupName": "dealinformation",
"type": "enumeration",
"fieldType": "select",
"options": [
{
"hidden": false,
"label": "Test2",
"value": "Test2",
"readOnly": false,
"description": null,
"displayOrder": -1,
"doubleData": null
}
],
"createdAt": 1509298792252,
"updatedAt": 1539610725769,
"updatedUserId": 5973239
}

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Unable to add a single deal property value with put

SOLVE

Hi @clevy,

At this time, it is not possible to append values to multiple checkbox properties via an API; only imports and workflows have this functionality.

These topics also cover this behavior:

While some historical property values can still be used in lists and workflows, the only way to get all the values in the property at once will be to GET the current property values through the Deals API and add the values to the PUT update call.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
2 Replies 2
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Unable to add a single deal property value with put

SOLVE

Hi @clevy,

At this time, it is not possible to append values to multiple checkbox properties via an API; only imports and workflows have this functionality.

These topics also cover this behavior:

While some historical property values can still be used in lists and workflows, the only way to get all the values in the property at once will be to GET the current property values through the Deals API and add the values to the PUT update call.

Isaac Takushi

Associate Certification Manager
0 Upvotes
clevy
Member

Unable to add a single deal property value with put

SOLVE

Got it, thanks for the quick response

Crystal Levy

Developer

0 Upvotes