500 error on insert placement request

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
ngoffclearlyrated
User
Posts: 7
Joined: Mon Apr 08, 2019 11:45 am

500 error on insert placement request

Post by ngoffclearlyrated » Fri Apr 19, 2019 2:15 pm

I'm trying to use the Bullhorn REST API to insert a new Placement. When issuing the PUT request, I'm getting an HTTP status 500 without any useful explanation. I've successfully done API insertions for JobOrder, JobSubmission, and Candidate, so I know authorization and other headers are not the issue. I'd really appreciate help discovering what the real issue is.

The URL is: https://rest91.bullhornstaffing.com/res ... /Placement

My JSON body is:
{
"candidate": {
"id": 51
},
"jobSubmission": {
"id": 5
},
"jobOrder": {
"id": 6
},
"owner": {
"id": 5
},
"clientContact": {
"id": 18
},
"clientCorporation": {
"id": 1
},
"dateAdded": 1555690596000,
"dateBegin": 1555511280000,
"dateEnd": 1563336000000,
"status": "Placed",
"daysGuaranteed": 0,
"daysProRated": 0,
"durationWeeks": 4.0,
"employmentType": "Contract",
"fee": 0.0,
"hoursPerDay": 8.0,
"payRate": 30.0,
"recruitingManagerPercentGrossMargin": 0.0,
"referralFee": 0.0,
"referralFeeType": "Percentage",
"salary": 0.0,
"salaryUnit": "Per Hour",
"salesManagerPercentGrossMargin": 0.0
}

mfinleybh
User
Posts: 41
Joined: Thu Feb 21, 2019 9:48 am

Re: 500 error on insert placement request

Post by mfinleybh » Mon Apr 22, 2019 9:49 am

Greetings ngoffclearlyrated,

Thank you for reaching out to our Forums. Could you let me know what Bullhorn related username you are using to attempt to make the Placement Call?

I will check and test to make sure all is well.

Thanks!

Mathew Finley | Analyst, Enterprise Support | Boston

Bullhorn Support US: 617-478-9126
Bullhorn Support UK: 44 800 032 2848
Bullhorn Support Australia: 61 28 073 5089
Bullhorn Support International: 617-478-9131

ngoffclearlyrated
User
Posts: 7
Joined: Mon Apr 08, 2019 11:45 am

Re: 500 error on insert placement request

Post by ngoffclearlyrated » Mon Apr 22, 2019 11:04 am

It doesn't seem like I should be posting that on here, should I? Can we just email with you directly to resolve this? It is a fairly big roadblock for us right now.

ngoffclearlyrated
User
Posts: 7
Joined: Mon Apr 08, 2019 11:45 am

Re: 500 error on insert placement request

Post by ngoffclearlyrated » Mon Apr 22, 2019 7:45 pm

You can ignore this. We discovered the fake data generator and were able to get around this.

ngoffclearlyrated
User
Posts: 7
Joined: Mon Apr 08, 2019 11:45 am

Re: 500 error on insert placement request

Post by ngoffclearlyrated » Tue Apr 23, 2019 10:25 am

In case anyone else runs into this, the issue with this request is the inclusion of the jobSubmission, owner, clientContact, and clientCorporation relationships which cannot be set on placement because they are inferred from other to-one relationships. (But it would be nice if there was a 400 response with an error message to that effect, instead of an opaque 500.)

Post Reply