PUT econ-model

I am testing the econ-model PUT endpoints to see if I can speed up getting my updated quarterly economic assumptions into CC. The script below seems to work. I get an “OK” status response, but when I open combocurve, I don’t see the model. Let me know if you have any advice on what I could be doing wrong.

Also, I’m a little confused with the required “well” field. I would have expected the econ-model to only be applied on a scenario or project level, but not a well level.

---------------- PUT econ-model ---------------------------------

url = f’https://api.combocurve.com/v1/projects/{projectid}/econ-models/ownership-reversions

data = [
{
“name”: “test ownership”,
“unique”: True,
“scenario”: “scenarioid”, #swap with actual scenarioid
“well”: “wellid”, #swap with actual wellid
“ownership”: {
“initialOwnership”: {
“workingInterest”: 1,
“netProfitInterestType”: “expense”,
“netProfitInterest”: .75,
“netRevenueInterest”: .75,
“leaseNetRevenueInterest”: .75,
“oilNetRevenueInterest”: .75,
“gasNetRevenueInterest”: .75,
“nglNetRevenueInterest”: .75,
“dripCondensateNetRevenueInterest”: .75
}
}
},
]

response = requests.request(“PUT”, url, headers=auth_headers, json=data)

print(response.status_code, response.text)

Response:

207 {“results”:[{“status”:“OK”,“code”:200,“name”:“test ownership”}],“successCount”:1,“failedCount”:0}

The econ-model PUT/POST requests allow a user to create new econ models that can be assigned to wells or qualifiers. They do not however do the assignments. In order to actually assign an econ model you would use the assignments endpoint.

The econ model you created should be available if you click on the ... button in the scenario table, click Choose Ownership and Reversion, and then click Unique Models. I’ll walk through a sample usage of the endpoint below.

  1. Open Scenario table in UI and navigate to selected well
  2. Click ... button on Ownership Reversion cell for given well and click Choose Ownership and Reversion
  3. Click on the Unique Models button
  4. Note that there are no models listed (I have not created any unique econ models for this well yet)
  5. Issue PUT request for new unique econ-model scoped to the given well
  6. Reload page and follow steps 1-3
  7. Note that the unique model is now available for this well
  8. Open Choose Ownership Reversion screen for a different well
  9. Note that the unique model is not availble for any other wells

If you would like to create an econ model that can be used by many different wells you can set the unique field to false and omit the well field. The econ model would then be usable by any well in your project.

2 Likes

Thanks for the quick response, that was exactly the clarification I needed!