Required, read-only/default fields when inserting rows

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
alexwindsormusic
User
Posts: 1
Joined: Thu Apr 23, 2020 5:51 am

Required, read-only/default fields when inserting rows

Post by alexwindsormusic »

Hi - when inserting a row into an entity, using the PUT entity api call, is there a way to know which fields are mandatory and don't have default values, and also which fields have default values and what those default values are ?

The meta api calls seem to be wrong / contradictory as many fields are flagged as 'readOnly: true' when they are not, and also many fields are flagged as both optional as well as required.

Also, is there a way to list all the entities that can't be inserted into?

Many thanks in advance.

khenle
User
Posts: 3
Joined: Wed Feb 26, 2020 12:31 pm

Re: Required, read-only/default fields when inserting rows

Post by khenle »

The following doc provide a bit more detail about retrieving meta data:

https://bullhorn.github.io/rest-api-docs/#meta

In order to determine which fields are mandatory you can look at the property metadata and view what is optional or required, as well as what the defaultValue is.

Hope this helps!

Post Reply