im trying to programatically send a cv along with a job submission. Im able to attach a file to the candidate but this file comes as a simple attachment and fileType comes empty in bullhorn dashboard. Also this atachment is not reflected as a cv sent to a job submission the candidate made. Here is the code im using:
Code: Select all
$params = [
"fileContent" => $fileContent,
"externalID" => "portfolio",
"name" => $fileName,
"fileType" => "SAMPLE",
"type" => 'cover',
];
$response = $this->client->request(
'PUT',
"file/Candidate/$uid",
[
'body' => json_encode($params)
]
);