I am trying to upload the document record by using the REST API
/hcmRestApi/resources/11.13.18.05/documentRecords
{"PersonNumber": "10827",
"DocumentCode": "GLB_BIRTH_2019-5-20-8-17-27",
"DocumentName": "GLB_BIRTH_2019-5-20-8-17-27",
"DocumentType": "Birth"
}
Then i am attaching the pdf
/hcmRestApi/resources/11.13.18.05/documentRecords/300002132767071/child/attachments
{
"FileName": "Birth_Certificate.pdf"
}
This is creating the document of records in the system but it is getting loaded as empty.
Is there is any field that I need to pass during the payload to load the ocntent of the attachment ?
Also, I have tried both Postman and SOAPUI