You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST API - Setting the Account when updating Incident with Private Note

Received Response
8
Views
6
Comments
edited Oct 31, 2017 6:11PM in Integrations and APIs 6 comments

Content

Our developer is having an issue with updating incidents with a Private Note when using PATCH.

For some reason, the Account ID is not setting correctly. Is there something missing here?

Here are her notes:


I am [using PATCH method]... and the incident is updated with the new thread when I do so, but the account portion is completely ignored. For example, if I send:

{ "threads": { "account": { "id": 379470 }, "entryType": { "lookupName": "Note" }, "text": "Here is a new note." } }

to:

https://xxxxxx--tst.custhelp.com/services/rest/connect/v1.3/incidents/3128592

... the result is that a new thread is added (correct) with entryType of Note (correct) and account of 377694 (incorrect) [Account 377694  is the account used to authenticate when the script starts.]. If I attempt to update a thread directly by sending:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!