Hello,
I get an internal error when I try to upload a PDF resume through the import_document v2 API.
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=
Response:
{
"code": "SUCCESS",
"details": [
{
"created_time": "2018-04-03 22:36:06.0",
"fileName": "johnCV.txt",
"modified_time": "2023-03-30 16:42:12.0",
"modified_by": {
"name": "devops",
"id": "445553000000195003"
},
"id": 445553000000207005,
"message": "Candidate updated successfully",
"created_by": {
"name": "devops",
"id": "445553000000195003"
}
}
],
"message": "document uploaded successfully"
}
PDF Example
I used an oauth token with ZohoRecruit.modules.all scope.
filename
profile.pdf
document:
<base64 PDF>