I have not yet succeeded in updating an existing engagement from nodejs. Specifically, I am simply trying to update a specific task status to COMPLETED.
Thanks @kierana , I'll play with that this weekend. I have seen PATCH referenced in the API docs, but I did not understand it as a method in the endpoints. I'll post what I find.
Not making much progress. Per Update an Engagement in the legacy api docs, engagement is required in the JSON body, so I tried adding an engagement with various info from the existing engagement and even an empty engagement section like this:
But no matter what I try, the response is always: "HttpError: HTTP request failed" giving no clues to what is wrong with the request. So it seems to be a matter of empirical testing to guess what might be expected. But I have not found the magic incantation yet.
I get the same "HttpError: HTTP request failed" trying to update the engagement due date "timestamp", so it appears all my updates are failing. Here is my JSON for that attempt:
So both GET and POST calls are working and my oauth token is getting passed by nodejs without putting anything in the JSON. It seems to be specific to Update.