I get the following error message if the after value is at least 10 :
Invalid input JSON on line -1, column -1: Cannot construct instance of `com.hubspot.content.filemanager.core.external.requests.files.FileSearchQuery`, problem: `java.nio.BufferUnderflowException`
And the following if it is 0-9:
Invalid input JSON on line -1, column -1: Cannot construct instance of `com.hubspot.content.filemanager.core.external.requests.files.FileSearchQuery`, problem: Input byte[] should at least have 2 bytes for base64 bytes
I've tried several different values for after (0, 1,9, 25, 100, 1000) and get the above error messages for each.
What am I doing wrong?
In addendum, is there an endpoint that will give me a complete list of only the filenames? This endpoint, with all the extraneous information and the limit of 100 is not exactly what I really need.
I think the issue is what you are putting in for the after value. It's not a number you set, but a value returned in the response that the API generates per request.
I hope this helps get you moving forward! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
I think the issue is what you are putting in for the after value. It's not a number you set, but a value returned in the response that the API generates per request.
I hope this helps get you moving forward! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
Getting error on endpoint files/v3/files/search when using after parameter
SOLVE
To your followup question, this is the available endpoint for returning files. In this case, there isn't a way to limit the properties returned. You'll need to parse out what you need in your app.
Best,
Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !