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:
- Create models
- Look-up the
econModelIDof the new model - 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!