REST API - Authentication/Logon - Missing Parameter(s)

SteveK
New Contributor III

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

1 ACCEPTED SOLUTION

SteveK
New Contributor III

Solved it!

The problem was I was sending the body as form-data and not Raw (JSON) format in PostMan

Woohoo!

Steve

View solution in original post

3 REPLIES 3

IBK
New Contributor III

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.

SteveK
New Contributor III

Thanks - that side of it has all been set up

SteveK
New Contributor III

Solved it!

The problem was I was sending the body as form-data and not Raw (JSON) format in PostMan

Woohoo!

Steve