Select which Private Label is used for the current API Session or call

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
brainwahve
User
Posts: 4
Joined: Thu Jul 26, 2018 10:37 am

Select which Private Label is used for the current API Session or call

Post by brainwahve » Wed Jun 05, 2019 3:37 pm

We have 3 private labels defined in our NPE and Production environments and need to be able to retrieve the skills and categories associated with each private label via the API. We have an API User that has access to all 3 private labels. When I use PostMan (REST API Tool) to send requests to Bullhorn to retrieve skills (…/options/Skill?count=300) I only receive the skills for the default private label associated with the API User. How do I specify which private label the skills are retrieved from so that I can get all the skills for all the private labels?

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

Re: Select which Private Label is used for the current API Session or call

Post by mfinleybh » Wed Jun 05, 2019 3:46 pm

Greetings brainwahve,

I'd recommend changing the primary private label on the API user itself front facing, then running your call.

This method should allow you to grab all three separately.

Please let me know if you have any questions or concerns.

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

brainwahve
User
Posts: 4
Joined: Thu Jul 26, 2018 10:37 am

Re: Select which Private Label is used for the current API Session or call

Post by brainwahve » Wed Jun 05, 2019 4:12 pm

Matthew,

Thanks very much for your quick reply.

It seems like a rather draconian solution to have to change the primary private label of the user in order to set it for the current session. Is there another method? I can retrieve the private labels with .../settings/allPrivateLabelIds and I can retrieve the current private label with .../settings/privateLabelId. Is there no way to set it if the currently logged in user has access to multiple private labels?

Howard

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

Re: Select which Private Label is used for the current API Session or call

Post by mfinleybh » Wed Jun 05, 2019 4:52 pm

Greetings brainwahve,

We might be able to just insert the Private Label Id's and run the call.

Could you provide me with your exact REST call you are making?

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

brainwahve
User
Posts: 4
Joined: Thu Jul 26, 2018 10:37 am

Re: Select which Private Label is used for the current API Session or call

Post by brainwahve » Wed Jun 05, 2019 5:00 pm

The call is in the first email in the thread: …/options/Skill?count=300

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

Re: Select which Private Label is used for the current API Session or call

Post by mfinleybh » Thu Jun 06, 2019 9:17 am

Greetings brainwahve,

You should be able to specify the specific Private label ID within your call.

For example:

https://rest2.bullhornstaffing.com/rest ... elId=15064

Please let me know if you have any questions or concerns.

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

brainwahve
User
Posts: 4
Joined: Thu Jul 26, 2018 10:37 am

Re: Select which Private Label is used for the current API Session or call

Post by brainwahve » Thu Jun 06, 2019 11:18 am

Matt,

That seemed to work! Is the "privateLabelId" querystring parameter applicable to any API call?

Also, I wasn't able to find your example call to ".../services/Extensions/install" anywhere in the online documentation, where can I find it?

Thanks,

Howard

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

Re: Select which Private Label is used for the current API Session or call

Post by mfinleybh » Thu Jun 06, 2019 12:22 pm

Greetings brainwahve,

That is correct the "privateLabelId" querystring parameter is applicable to privatelabelID centric calls.

The demo call was from a colleague of mine an not off of the documentation. I tried a sample run of this and it doesn't seem to do anything.

I think he crafted it just as a demo writeout of the privateLabelId parameter.

Best,

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

Post Reply