Page 1 of 1

API POST candidate will clear already set Address Properties

Posted: Wed Apr 29, 2020 2:54 pm
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