How do I update a field's value to NULL via Rest API?

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
sretzer
User
Posts: 1
Joined: Tue Nov 19, 2019 10:38 am

How do I update a field's value to NULL via Rest API?

Post by sretzer » Tue Nov 19, 2019 10:44 am

I would like to completely NULL out a particular field so we can re-purpose it for something else. I'm not sure what value to send.

Here's what does NOT work:

{ "id" : 123456, "customText1" : NULL }
{ "id" : 123456, "customText1" : "NULL" }
{ "id" : 123456, "customText1" : }
{ "id" : 123456, "customText1" : "" }

bashen
User
Posts: 8
Joined: Wed Jul 11, 2018 5:09 pm

Re: How do I update a field's value to NULL via Rest API?

Post by bashen » Fri Nov 22, 2019 4:37 pm

Setting the value to all-lowercase 'null' (no quotes) should work.

Example:

POST entity/Candidate/123456

Body:

Code: Select all

{
	"customText1": null
}

Post Reply