Get response body from post request with skuid in model

Andrea,

A couple questions to start off:

1. Is the shape of the response body from the POST request significantly different from the shape of the data that you are sending in the POST request? If the request / response shapes (i.e. the fields sent / received) are significantly different, it might make more sense to have separate Models, one for making the POST, and one for querying for the response. Which brings me to the next question:

2. Can you access the result of the POST via a separate query, e.g. a GET request to a different endpoint? If so, what you might want to do is to have one Model for inserting new data, and another Model for querying — and then setup a Model Action on the Model that does the “insert” to re-query the “query” model whenever the insert Model is saved.

If it ends up making more sense to stick with the single-Model approach, you can define the fields that are returned from the POST response simply by manually adding additional fields into the Model — just click “Add Field” and specify the names of the fields that you would like to interact with. 

Regarding the error message you’re getting — I’ve seen this in the past but I don’t recall ever figuring out what the cause was. Here’s a few questions: 
(1) How are you authenticating? Are you using an auth provider, e.g. an OAuth 2 provider?
(2) What is the expected content type of the response? Is the array coming back as JSON?