How to retrieve categories more than 5 for a candidate record using rest api

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
ashishM
User
Posts: 28
Joined: Tue May 03, 2016 2:28 am

How to retrieve categories more than 5 for a candidate record using rest api

Post by ashishM » Tue Mar 27, 2018 10:40 am

Hi,

I have categories associated with candidate record. I am executing below URL to get all the category items for a candidate record.

URL - https://rest.bullhornstaffing.com/rest- ... categories

But I am able to get only 5 category items. I have candidate records in Bullhorn which have more than 5 items selected for the category field.
Please let me know how to retrieve all the category items selected for a candidate record using rest API.

Thanks in advance.

srg.bdavis
User
Posts: 67
Joined: Thu Feb 20, 2014 4:52 pm

Re: How to retrieve categories more than 5 for a candidate record using rest api

Post by srg.bdavis » Tue Mar 27, 2018 11:07 am

When requesting to-many entities, the default return count is 5. To specify more than 5, include the number you want in brackets:

https://rest.bullhornstaffing.com/rest- ... Candidate/{Id}?fields=categories[10]

ashishM
User
Posts: 28
Joined: Tue May 03, 2016 2:28 am

Re: How to retrieve categories more than 5 for a candidate record using rest api

Post by ashishM » Thu Mar 29, 2018 12:24 am

Thank you srg.bdavis for your help.It worked.

Post Reply