Improving the API response of newly created econ models

As part of our team’s workflow, we regularly need to update/create unique ownership and reversion models within a scenario and then immediately assign the models to the relevant wells.

In the CC API, this currently boils down to three steps:

  1. Create models
  2. Look-up the econModelID of the new model
  3. Assign the model to the relevant well(s)

Although this process works, I think it could be meaningfully simplified with a small change. Currently, when a new econ model is created (via POST/PUT) the response provided by the API does not include the econModelID of the newly created model (see below).

response.text = {
    results : [{status : OK, code : 200, name : <econ model name>}]
}

To actually get the model id, the user must query the get-econ-models endpoint and extract the id from the response.

Instead of doing this, would it be possible to include the econModelID in the response of the model creation step?

response.text = {
    results : [{status : OK, code : 200,
                name : <econ_model_name>,
                id : <econ_model_id>}]
}

Thanks!

Hey Travis,

At a high level, I don’t see any fundamental reason we couldn’t include the ID in the POST/PUT response. Before committing to the change, I just want to do a quick verification on our side to make sure there isn’t any historical or technical reason we haven’t already returned it.