API POST candidate will clear already set Address Properties

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
tyhrstan
User
Posts: 2
Joined: Fri Nov 16, 2018 5:29 am

API POST candidate will clear already set Address Properties

Post by tyhrstan »

Hi,

I'm having some issues with updating candidates through the REST API.

When updating an existing candidate using the endpoint all properties not provided are being reset.

for example:

posting the following JSON to /entity/candidate/{id}

Code: Select all

{
	"name": "test from me",
	"firstName": "test",
	"lastName": "from me",
	"email": "email@me.com",
	"mobile": "0987654321",
	"address": {
		"city": "place",
		"zip": "1111AA",
		"countryID": 2306,
		"countryName": "Netherlands"
	},
	"source": "web"
}
will set the country to the Netherlands.. when I POST the following to the same endpoint

Code: Select all

{
	"name": "test from me",
	"firstName": "test",
	"lastName": "from me",
	"email": "email@me.com",
	"mobile": "0987654321",
	"address": {
		"city": "place",
		"zip": "1111AA"
	},
	"source": "web"
}
the country is reset to United States.

How can I make sure that already set fields are not cleared?

This also includes address fields that are being set through the Bullhorn application. If other address properties of a Candidate are being set, making a POST to he candidate endpoint will clear all the other set values.

Regards,
Tyhrstan
Post Reply