[REST API] Creating a Note returns 500 error, yet it is actually created

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
jiminny
User
Posts: 2
Joined: Wed Mar 24, 2021 4:41 am

[REST API] Creating a Note returns 500 error, yet it is actually created

Post by jiminny »

We are creating notes via the REST API. Doing so causes two things to happen:

1. We get a 500 error from your service with no information
2. The note actually gets created in Bullhorn just fine

Looks like someone asked the exact same question 2 years ago on the support forum and no followup: viewtopic.php?f=104&t=33740&p=79830&hil ... Key#p79830

Code: Select all

Server error: `PUT https://rest21.bullhornstaffing.com/rest-services/xxxxxx/entity/Note` resulted in a `500 Internal Server Error` response:
{"errorMessage":"An internal error has occurred","errorMessageKey":"errors.internalError"}

Code: Select all

{
   "headers":{
      "BhRestToken":"xyz"
   },
   "json":{
      "action":"Cold Call",
      "commentingPerson":{
         "id":12,
         "type":"CorporateUser"
      },
      "comments":"<p><span style='font-size: 16px; line-height: 19.2px;'>test</span></p><p><span style='font-size: 13.3333px; line-height: 16px;'>Call Duration: 1 second</span></p><p><span style='font-size: 13.3333px; line-height: 16px;'>Dialed: +44</span></p><p></p><p><strong>Summary</strong></p><p>test</p><p></p>",
      "dateAdded":null,
      "externalID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
      "jobOrder":{
         "id":7303,
         "type":"JobOrder"
      },
      "minutesSpent":0,
      "personReference":{
         "id":366936,
         "type":"ClientContact"
      }
   }
}
Here is an example timestamp: Mar 23, 2021 8:15:39 PM UTC


Please let us know when resolved?
Post Reply