Date-settings assignments

I have been able to post and assign economic models for expenses and differentials.
But the same line of code does not work for date-settings.

response = requests.post(
f’https://api.combocurve.com/v1/projects/{project_id}/econ-models/{econ_model_type}/{econ_id}/assignments’,
headers=headers,
json=econ_assignment_json
)
print(response.status_code, response.text)

this is what I get when assigning expenses

207 {“results”:[{“status”:“Created”,“code”:201,“chosenID”:“Default”}],“successCount”:1,“failedCount”:0}

vs when assigning date-settings

400 [{“name”:“InvalidEconName”,“message”:“Invalid econ name: date_settings”,“location”:“”},{“name”:“InvalidEconName”,“message”:“Invalid econ name: date_settings”,“location”:“”},{“name”:“EconTypeMismatch”,“message”:“The econModel ‘681a8a08dbcadd96c63d3f1e’ is not ‘undefined’”,“location”:“url”}]

1 Like

It looks like there is an issue with using date_settings as the econ name. We should be able to handle any combination of date-settings on our end, and we will fix it.

In the meantime, would you mind using dates rather than date_settings?

I tried ‘dates’ and that worked. Thanks.

However, I am getting the same issue for ‘actual-forecast’ and ‘ownership-reversions’; able to GET with id, but cannot POST assignments

Also, is there a way to assign forecasts using the API? It isn’t an econ_model

Here are some of those keys that should work for you

	'capex',
	'dates',
	'depreciation', 
	'differentials',
	'emission',
	'escalation',
	'expenses',
	'fluid_model',
	'general_options',
	'ownership_reversion', // we also accept ownershipandreversion, or ownershipreversion
	'pricing',
	'production_taxes',
	'production_vs_fit', // This is actual-forecast we also accept actualforecast, or actualorforecast
	'reserves_category',
	'risking',
	'stream_properties',

is there a way to assign forecasts using the API?

As of right now, we only assign econ models. If there is a need to be able to assign forecasts, I suggest you reach out to your account manager at ComboCurve and request this as a new API feature so that we can get it on our roadmap.

Thanks! These keys were what I needed

1 Like