Event Subscription with LastRequestId "Unknown of badly structured command" Error

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
ctran360
User
Posts: 1
Joined: Tue Jan 07, 2020 8:35 pm

Event Subscription with LastRequestId "Unknown of badly structured command" Error

Post by ctran360 »

Hello,

I'm looking into the events subscription API, and attempting to make a GET request passing the lastRequestId http://bullhorn.github.io/rest-api-docs ... trequestid.

However when I do this, the request fails.

For example:

Code: Select all

curl -H "BhRestToken: xxx" https://rest60.bullhornstaffing.com/rest-services/64pqp0/event/subscription/subscriptionId/3?maxEvents=100&type=entity
Where 3 corresponds to the lastRequestId

The error is

Code: Select all

{"errorMessage":"Unknown or badly structured command: /event/subscription/E360Events/3.","errorMessageKey":"errors.badCommand"}
When I remove the lastRequestId from the URL, the request works. However I'd like to make GET requests from a particular request id.

Can you advise on the issue? Thanks!
Post Reply