Page 1 of 1

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

Posted: Wed Jan 08, 2020 2:21 am
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!