Retrieving CandidateEducation results in 404

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
Posts: 5
Joined: Fri Jun 28, 2019 3:12 pm

Retrieving CandidateEducation results in 404

Post by latestrelease » Mon Jul 15, 2019 1:54 am

We're building something pretty simple, that synchronizes bullhorn record with the local copy
of what we have. But bullhorn rest-api is not clear in most aspect of the simple work that needs
to be done.

Right now am struggling to get CandidateEducation, but i have failed. Here is is are my code which is python based.

Code: Select all

def get_education(self, candidate_id):

        if not all([self.rest_token, self.rest_url]):
            return {}
        url = self.rest_url + "entity/CandidateEducation/{0}".format(candidate_id)
        params = {"fields":"*", "BhRestToken":self.rest_token}
        req = requests.get(url, params=params)

            response_dict = req.json()
        except Exception as err:
            response_dict = {}
            return response_dict
The above piece of code works in other aspects of the entity, only to fail in CandidateEducation with this error

Code: Select all
    "errorCode": 404,
    "errorMessage": "Entity not found.",
    "errorMessageKey": "errors.entityNotFound"
I have googled no solution that's why m posting it here
The question is still the same.
How can i get CandidateEducation.

Thank you.

Posts: 19
Joined: Tue Jun 25, 2019 2:22 pm

Re: Retrieving CandidateEducation results in 404

Post by kschutten » Mon Jul 15, 2019 7:16 am

Hi latestrelease,

This is an error for calling for a non-existing candidate (the entity).
Is it possible that ID of the candidate you are looking for doesn't exist?

Post Reply