Tricky authorization request for running the /analytics/reporting/schedules

Hi,

As a preface, I want to say this works in Postman, that said, the objective is to run this in Alteryx. Before you close the browser please continue.

The ultimate goal is to run the /api/V2/analytics/reporting/schedules/ { id number } using the PUT method to change the parameters of a report residing on the Engage Portal using Alteryx. I will reuse the same report id. Using the Fiddler program against Postman, I have this data returned below when running the OAuth ( the orange button in Postman that generates a new Bearer Token ).

https://login. {base url} /oauth/authorize?response_type=code&client_id=99999-99999-99999-999999zzz&redirect_uri=https://oauth.pstmn.io/v1/callback

When the above URL is placed in the browser it returns:
postman://app/oauth2/callback?code={ 43 character alpha-numeric code }

I then take the 43 character alpha-numeric code as a parameter in the Alteryx tool, "code = { 43 character alpha-numeric code }"

Then, when I run the oauth api in Alteryx it generates a valid bearer token that Genesys will accept so that the /analytics/reporting/schedules api will run and effect change to the report.

Here is the ultimate question and point: I need to be able to run this part programmatically:
https://login. {base url} /oauth/authorize?response_type=code&client_id=99999-99999-99999-999999zzz&redirect_uri=https://oauth.pstmn.io/v1/callback
and capture that 43 character Code.

Any help or guidance is appreciated.
Chris

Hi Chris,

I think your question is specific to OAuth using Alteryx. The best place to get answers about an OAuth flow in Alteryx would be on the Alteryx forums or possibly questions tagged Alteryx on stack overflow.

Also, I'm quite sure that the PUT /api/v2/analytics/reporting/schedules/{scheduleId} endpoint doesn't require a user context so you may authenticate using Client Credentails which would be a significantly easier process than Code Authorization.

Hi Ronan,
I'm asking our Genesys technical contact to allow grant type = client credentials for the Alteryx Client ID because right now it's set at authorization code like in Postman. I myself cannot alter the permissions on my Client ID.
Thank you for your reply and the information about Stack Overflow.
Chris

Hi Ronan
We have discovered that, where Alteryx is concerned, the Client ID will not be granted the permissions necessary to make the API call work. Since the Genesys API library can be installed in Postman, that platform has the necessary tools and accessories ( for lack of a better term ) to perform the API call successfully. But Alteryx cannot be configured to overcome the permissions obstacle of the provided Client ID. We will pursue another API with a GET method that will help to bring us close to what we were trying to achieve with Reporting Schedules. That API is the analytics/users/details/query.
Thank you,
Chris

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.