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
document
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
document:
<base64 PDF>
Response:
{"response":{"error":{"code":"null","message":"null"},"uri":"/recruit/private/json/Candidates/uploadDocument"}}