10-12-2023 10:42 AM - edited 10-12-2023 11:03 AM
I am trying to connect to a OneStream Cloud environment for which the REST API has been enabled and tested by OneStream Support.
I am working in PostMan and following the REST API guide at System Guides > REST API Implementation > REST API Overview > Authentication, but i am hitting an error "One or more required parameters are missing."
I can retrieve the AzureAD token fine, but when I then try and use it to authenticate with OneStream (expecting the SI to use later on), I get the above error message returned (along with a HTTP/400 Bad Request).
As far as I can see I am not missing any Parameters as per that section of the REST API Guide.
The POST request is to:
https://xxxx.onestreamcloud.com/onestreamapi/api/authentication/logon?api-version=7.2.0
Params: api-version=7.20
Authorization: Bearer Token returned from Azure AD (via a PostMan variable)
Content-Type: application/json
Body: BaseWebServerURL: https://xxxx.onestreamcloud.com/onestreamweb
What am I missing?
Thanks
Steve
Solved! Go to Solution.
10-13-2023 11:04 AM
Solved it!
The problem was I was sending the body as form-data and not Raw (JSON) format in PostMan
Woohoo!
Steve
10-12-2023 10:01 PM
Hi Steve,
You will have to contact support. There is a Knowledge Base Article on REST API which helps you download Postman and a OnstreamXF json. You then provide the right parameters like the ClientID, Tenant ID and the secret after you have created a user in OneStream with the Client ID as user and password of your choice.
Hope this helps.
10-13-2023 03:41 AM
Thanks - that side of it has all been set up
10-13-2023 11:04 AM
Solved it!
The problem was I was sending the body as form-data and not Raw (JSON) format in PostMan
Woohoo!
Steve