Candidate GET Request

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
rrhodesdav
User
Posts: 2
Joined: Mon Nov 23, 2020 1:54 pm

Candidate GET Request

Post by rrhodesdav »

I'm using Postman to do a GET request of a candidate based on their id. This request came from the example Postman calls in the Bullhorn REST documentation. I replaced the rest url and added the BhRestToken.

What I found in documentation:
http://{{resturl}}/entity/Candidate/{{CANDIDATE_ID}}?fields=*

My request:
https://rest30.bullhornstaffing.com/res ... /{{REMOVED FOR SECURITY}}/entity/Candidate/{{CANDIDATE ID HERE}}?fields=*&BhRestToken={{BH REST TOKEN HERE}}

The response I am getting is:

{
"errorMessage": "errors.allFieldsNotAllowed",
"errorCode": 400
}

Has anyone run into this before? If all fields aren't allowed, then why does the documentation show "fields=*" at the end of the GET request?
Attachments
bh_error_response.png
bh_error_response.png (12.09 KiB) Viewed 235 times
rrhodesdav
User
Posts: 2
Joined: Mon Nov 23, 2020 1:54 pm

Re: Candidate GET Request

Post by rrhodesdav »

Upon speaking with BH support, it seems that fields=* has been deprecated. Specific fields are now required, however I don't see anything within BH documentation that shows what field options are available with each Entity. Has anyone been able to find this information?
bashen
User
Posts: 11
Joined: Wed Jul 11, 2018 5:09 pm

Re: Candidate GET Request

Post by bashen »

You can find the available fields in the Entity Reference Guide - http://bullhorn.github.io/rest-api-docs/entityref.html
Post Reply