https://recruit.zoho.com/recruit/private/json/Candidates/uploadDocument?authtoken=<token>&scope=recruitapi Not Working for PDF Upload

https://recruit.zoho.com/recruit/private/json/Candidates/uploadDocument?authtoken=<token>&scope=recruitapi Not Working for PDF Upload

Hello,

I get an internal error when I try to upload a PDF resume through the uploadDocument API call.

However, the upload works when using a simple text file.

I tried multiple PDF files and got the same result.



fileName
johnCV.txt

documentData
TmFtZTogVG9ueQ0KDQpFbWFpbDogdG9ueUB6b2hvY29ycC5jb20NCg0KTG9jYXRpb246IENoZW5uYWk=


version
2


Response:
{"response":{"result":{"recorddetail":{"FL":{"val":"Id","content":"445553000000207005"}},"message":"Candidate updated successfully"},"uri":"/recruit/private/json/Candidates/uploadDocument"}}


PDF Example


I used an oauth token with ZohoRecruit.modules.all scope.

Last token used:


fileName
profile.pdf

documentData
<base64 PDF>

Response:
{"response":{"error":{"code":"null","message":"null"},"uri":"/recruit/private/json/Candidates/uploadDocument"}}