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}





