-
Notifications
You must be signed in to change notification settings - Fork 111
Wrong type for search api #678
Copy link
Copy link
Open
Description
What
The expected type for sorts is defined as Array<string>. Based off the docs and actual implementations that work differently, I don't think that's true.
The docs mention this:
curl https://api.hubapi.com/crm/v3/objects/contacts/search \
--request POST \
--header "Content-Type: application/json" \
--header "authorization: Bearer YOUR_ACCESS_TOKEN" \
--data '{
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
]
}'This results in our having to do @ts-expect-error to pass any
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels