Getting Error 404 Not Found when calling this endpoint while trying to search for unique value in idProperty field.
ex. https://api.hubapi.com/crm/v4/objects/2-11557088/117574751~103392801?idProperty=relationshipidentifier
relationshipidentifier is the property
and117574751~103392801 is the value I am searching for. This is a custom object with an id of 2-11557088.
Do I have something set up wrong?
Hey, @AAdamonis
I hope you got this worked out. And I’ll leave my successful quick test result here, just in case it’s helpful.
Steps taken:
-
I created a custom property for my custom object — relationshipidentifier
-
I assigned it to one of my Boats
-
Endpoint used GET/crm/v4/objects/{objectType}/{objectId}
-
Request
curl --request GET \
--url 'https://api.hubapi.com/crm/v4/objects/2-7913954/117574751~103392801?archived=false&idProperty=relationshipidentifier' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN'
-
Response
HTTP 200
{
"id": "1976725408",
"properties": {
"hs_createdate": "2022-07-26T16:33:57.489Z",
"hs_lastmodifieddate": "2023-01-30T20:58:35.445Z",
"hs_object_id": "1976725408",
"relationshipidentifier": "117574751~103392801"
},
"createdAt": "2022-07-26T16:33:57.489Z",
"updatedAt": "2023-01-30T20:58:35.445Z",
"archived": false
}
When recreating your steps, I get a successful response.
Best,
Jaycee