I have been fighting through the process of creating a timeline event in my developer portal. In doing so, I created an event type in the developer portal and then created a process to obtain an OAuth 2 token. In my request for the token, I included the following scopes, and obtained an access token: contact, automation and timeline.
In my application, I have set up a call to the api, here: https://api.hubapi.com/integrations/v1/:app_id/timeline/event"; where “:app_id” is my application id for my developer account. I sent a put request to the URL above, with header containing the access token, as described in the docs.
However, when I send the data to that URL, I receive the reponse: StatusCode: 401, ReasonPhrase: ‘Unauthorized’
There may be an error in my JSON payload, but then, I would think, I would get a different error back, but I don’t understand why I am getting “Unauthorized”.