Followup on the older topic : Rclone Invokes more number of WorkDrive’s files listing API calls which exceeds the throttling limit

I had a go with this.

Unfortunately this needs a new scope which rclone didn't ask for originally
ZohoSearch.securesearch.READ so using this API means all rclone users will have to re-login. I guess that can't be helped.

However I couldn't get the API to work properly it kept giving {"errors":[{"id":"R602","title":"Invalid parent Id"}]} when I pass the root ID.

2024/03/11 11:24:44 DEBUG : HTTP REQUEST (req 0xc000b16100)
2024/03/11 11:24:44 DEBUG : GET /api/v1/teams/4xrzuf5bbda0ee9724864a75bd4b8408a6d88/records?filter%5BparentId%5D=4xrzu9ece9a669c3c4d38a009ca405a67cce9&page%5Blimit%5D=1&page%5Boffset%5D=0&search%5Bname%5D=50.txt HTTP/1.1
Host: workdrive.zoho.eu
User-Agent: rclone/v1.67.0-beta.7775.024a27ecf.fix-zoho
Accept: application/vnd.api+json
Authorization: XXXX
Accept-Encoding: gzip

And the reply

2024/03/11 11:24:44 DEBUG : HTTP RESPONSE (req 0xc000b16100)
2024/03/11 11:24:44 DEBUG : HTTP/2.0 500 Internal Server Error
Cache-Control: private,no-cache,no-store,max-age=0,must-revalidate
Content-Type: application/vnd.api+json;charset=UTF-8
Date: Mon, 11 Mar 2024 11:24:44 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: ZGS
Set-Cookie: f32142af9e=XXX; Path=/
Set-Cookie: zpcc=XXX;path=/;SameSite=None;Secure;priority=high
Set-Cookie: _zcsr_tmp=XXX;path=/;SameSite=Strict;Secure;priority=high
Set-Cookie: JSESSIONID=XXX; Path=/
Vary: accept-encoding
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

{"errors":[{"id":"R602","title":"Invalid parent Id"}]}

A 500 error doesn't look good. When I leave out the filter[parentId] then the query works and returns lots of stuff.

2024/03/11 11:30:28 DEBUG : HTTP REQUEST (req 0xc0008cf500)
2024/03/11 11:30:28 DEBUG : GET /api/v1/teams/4xrzuf5bbda0ee9724864a75bd4b8408a6d88/records?page%5Blimit%5D=1&page%5Boffset%5D=0&search%5Bname%5D=50.txt HTTP/1.1
Host: workdrive.zoho.eu
User-Agent: rclone/v1.67.0-beta.7775.024a27ecf.fix-zoho
Accept: application/vnd.api+json
Authorization: XXXX
Accept-Encoding: gzip

Gives

2024/03/11 11:30:28 DEBUG : HTTP RESPONSE (req 0xc0008cf500)
2024/03/11 11:30:28 DEBUG : HTTP/2.0 200 OK
Cache-Control: private,no-cache,no-store,max-age=0,must-revalidate
Content-Type: application/vnd.api+json;charset=UTF-8
Date: Mon, 11 Mar 2024 11:30:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: ZGS
Set-Cookie: f32142af9e=XXX; Path=/
Set-Cookie: zpcc=XXX;path=/;SameSite=None;Secure;priority=high
Set-Cookie: _zcsr_tmp=XXX;path=/;SameSite=Strict;Secure;priority=high
Set-Cookie: JSESSIONID=XXX; Path=/
Strict-Transport-Security: max-age=63072000
Vary: accept-encoding
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

{"data":[{"id":"1blhh19fa53470f634704967f41e51d5f888e",...
...
"meta":{"search_result_count":1}}

I will try emailing this to there too.