We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jun 29, 2022 8:42 AM
I am trying to fetch the provided parameter values through API(curl) , thuogh the value exists(I can find in front end) , the API does not return the value, I am just wondering if the passed parameters syntactically correct , the below page is refered for property parameters.
for e.g I am passing (Deal owner or Deal_owner) as parameter, neither gives me output
HubSpot's default deal properties
---------------------------------- curl
curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/deals?limit=10&properties=Deal_owner&archived=false&hapikey=YO...'
Solved! Go to Solution.
Jun 29, 2022 2:25 PM
Hey, @RBiswal 👋 Can you try making this request using the internal value for the property? For example, in Deal properties, Deal Owner is the label and hubspot_owner_id is the internal value.
I ran a quick test:
/crm/v3/objects/deals/{dealId}
curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/deals/9344774699?properties=hubspot_owner_id&archived=false' \
--header 'authorization: Bearer NOPE'
HTTP 200
{
"id": "9344774699",
"properties": {
"createdate": "2022-06-29T18:05:02.843Z",
"hs_lastmodifieddate": "2022-06-29T18:05:04.529Z",
"hs_object_id": "9344774699",
"hubspot_owner_id": "198670650"
},
"createdAt": "2022-06-29T18:05:02.843Z",
"updatedAt": "2022-06-29T18:05:04.529Z",
"archived": false
}
I hope that helps get you moving forward!
Best,
Jaycee
Jun 30, 2022 9:57 AM
Thanks Jaycee Lewis,
This works , I got to know about the lebel and the internal_value, that helps !!
hubspot>>settings>>property settings
Jun 29, 2022 2:25 PM
Hey, @RBiswal 👋 Can you try making this request using the internal value for the property? For example, in Deal properties, Deal Owner is the label and hubspot_owner_id is the internal value.
I ran a quick test:
/crm/v3/objects/deals/{dealId}
curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/deals/9344774699?properties=hubspot_owner_id&archived=false' \
--header 'authorization: Bearer NOPE'
HTTP 200
{
"id": "9344774699",
"properties": {
"createdate": "2022-06-29T18:05:02.843Z",
"hs_lastmodifieddate": "2022-06-29T18:05:04.529Z",
"hs_object_id": "9344774699",
"hubspot_owner_id": "198670650"
},
"createdAt": "2022-06-29T18:05:02.843Z",
"updatedAt": "2022-06-29T18:05:04.529Z",
"archived": false
}
I hope that helps get you moving forward!
Best,
Jaycee
Jun 30, 2022 9:57 AM
Thanks Jaycee Lewis,
This works , I got to know about the lebel and the internal_value, that helps !!
hubspot>>settings>>property settings