sending jobcv to a submission

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
Krisel
User
Posts: 1
Joined: Mon Sep 28, 2020 3:02 am

sending jobcv to a submission

Post by Krisel »

Hi all,
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)
                        ]
                    );
 
Can anyone help me. Thanks in advance!
Post Reply