What is the correct way to upload resume attachment with candidate info using API?

What is the correct way to upload resume attachment with candidate info using API?

Hi,

can anyone tell me or show me an example using Recruit API, how to add a candidate?

I have the list of JobOpenings on my website
Clicking on APPLY, opens up a custom form with basic fields and a RESUME UPLOAD field.

After the candidate fills out the form and click SUBMIT.. how do I send all his data and attach it
to the Job Post he applied for?

Please show me a full example of this process,
thanks.