Question
Strands
ES
Last activity: 21 Jan 2025 23:29 EST
Load data entries via REST API. Auth issues.
Hi,
I've setup a Platform app where I have a data object "Budget". I have budgets in another platform, and I want to load them into my Pega app via API (imagine a user creates a budget in another application, and I want to sync it with my Pega app).
I'm having a hard time with the Authentication of the Constellation DX API. I see there is a POST /data/{data_view_id} endpoint I can use, but I can't seem to make the auth work. I've used the "Dev Studio" to setup a new Authentication Profile, as well as OAUth2 client registrations. I have my client ids, secrets, oauth endpoints, etc. but I keep getting 401 errors (The authenticated client is not authorized to use the given grant type with flow clientCredentials, Invalid+value+provided+for+redirect_uri+parameter with authCode).
What am I missing? Do I need to link somewhere the app with the profile? Or the Auth Client registration?
I know I could be adding my data source as the source of the Budget object and have my app pull the data, but at the moment I'm focusing on pushing the data from the source.
Thanks