Hi @jcawesome,
You need to authenticate against the SAS Logon service - the same one that you enter a username and password into when accessing SAS Web App UIs, like CI Studio.
There are some good articles out there on how to do this:
This one focuses on using SAS PROC HTTP as the client rather than Postman, but the concepts are the same - and some good follow up conversation.
In summary the sequence is:
1. Get a "Ticket Granting Ticket" (TGT) from /SASLogon using a SAS metadata username and password.
2. Get a "Service Ticket" (ST) for a location within SAS Decision Services using the TGT from Step 1
3. Submit your SAS DS API request using the ST from Step 2.
Here are some screenshots from postman:
First is my collection with a set of requests to do Steps 1 - 3.
Setup an Environment in postman to set some variables to parameterise (but strictly speaking this is optional)
Then use the "Get TGT" to authenticate with /SASLogon:
This will return you a ticket.
Then we need to set the location of the API we want to use and request the Service Ticket (ST) for it:
and we get back a ST in the response
Now we can hit the Decision Services API using the ST. If you want to request different RTDM objects (decision flows, activities etc) you can use the different location in the request above based upon the correct endpoint from the documentation.
remember to include a referrer:
And then in the response body you will see a list of RTDM Decision Variables:
From here you can then use different requests to update variable values.
Attached is the Postman collection and environment I used for this (rename then to json to import into Postman).
Hope that helps.
Cheers
James
... View more