# Creating Forecast and Scenarios for projects via API

**URL:** <https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238>\
**Category:** Guidance\
**Created:** [August 15, 2023, 7:59pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238 "2023-08-15T19:59:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![willjosefi](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@willjosefi](https://forum.api.combocurve.com/u/willjosefi)\
**Post date:** [August 15, 2023, 7:59pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238/1 "2023-08-15T19:59:15Z")

</div>

Hey guys!

I would like to know if it’s possible to create a forecast or scenario for a project using the API only, without the UI

Looking at the API docs seems like I can update and get the values of the forecast/scenario but I’m not being able to see how to create it without using the UI. Without that, seems like I need to ask the user to create the forecast/scenario and only after that I can ingest our data to forecast (b factor, q start, di eff, d sw-eff)

Our goal is to create a workflow where we create a project and populate it with all the data we have and in the end, give our team a ready-to-analyze project

---

<div class="post-metadata">

**Author:** ![HGantz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/hgantz/32/95_2.png) [@HGantz](https://forum.api.combocurve.com/u/HGantz)\
**Post date:** [August 16, 2023, 1:44pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238/2 "2023-08-16T13:44:29Z")

</div>

> Our goal is to create a workflow where we create a project and populate it with all the data we have and in the end, give our team a ready-to-analyze project

You are correct in regards to the forecast

- As of today, you can create a new project with the POST` v1/projects` endpoint.

- The next step would be to create a new forecast which is not supported by the API.

- you can get the output of the forecast with `/v1/projects/:projectId/forecasts/:forecastId/outputs`

- you can add wells to the forecast with the API using the POST `/v1/projects/:projectId/forecasts/:id/wells`.

- You can insert, upsert, or delete the forecast parameters (b factor, q start, di eff, d sw-eff) with the `/v1/projects/:projectId/forecasts/:forecastId/parameters/:wellId/:phase/:series` endpoint.

The good news is that in an upcoming release, we will be adding several endpoints that should assist you with the scenario portion.

You will be able to :

- Create a new project with the POST` v1/projects` endpoint.

- (Awaiting release) Create a new scenario with the `/v1/projects/:projectId/scenarios` endpoint.

- Create new economic models with `v1/projects/:projectId/econ-models/<pick a model to add/update>` In the same release we should have support for all models.

- (Awaiting release) Assign the econ models to a scenario with` v1/projects/:projectId/econ-models/:econName/:econModelId/assignments`

- (Awaiting release) Add qualifiers with `v1/projects/:projectId/scenarios/:scenarioId/qualifiers`

So in conclusion, it seems that the only thing that will be missing would be creating new forecasts via the API. As far as a timeline goes I believe we will be doing a small release with some config changes this week and depending on how that goes maybe a week or two from now we will do the release with all of the new scenario endpoints mentioned above.

If adding a forecast via the API is a feature that you feel would add significant value to your company I can talk to the API product manager and let them know that this is something you’d like to have.

---

<div class="post-metadata">

**Author:** ![willjosefi](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@willjosefi](https://forum.api.combocurve.com/u/willjosefi)\
**Post date:** [August 24, 2023, 8:30pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238/3 "2023-08-24T20:30:55Z")

</div>

hey @HGantz , thanks for all the explanation.

Looking forward to the release of this next version.

I have a follow-up question. I’m watching some of the videos inside the Knowledge base and just found out about “Lookup Tables”

Is this available in the API? I’m not seeing any info about it in the docs. Is there any plan to include it too?

thanks

---

<div class="post-metadata">

**Author:** ![HGantz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/hgantz/32/95_2.png) [@HGantz](https://forum.api.combocurve.com/u/HGantz)\
**Post date:** [August 24, 2023, 9:35pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238/4 "2023-08-24T21:35:07Z")

</div>

Glad to help @willjosefi!

So lookup tables are not available in the API and they aren’t on our roadmap either. If lookup tables are a feature you’re interested in you can always reach out to your account representative at ComboCurve and let them know. I will let the product manager know you mentioned it as well.

---

<div class="post-metadata">

**Author:** ![willjosefi](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@willjosefi](https://forum.api.combocurve.com/u/willjosefi)\
**Post date:** [September 1, 2023, 1:26pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238/5 "2023-09-01T13:26:59Z")

</div>

hey @HGantz  
do you guys have a timeline for the release of those new features?

is it possible for us to start testing even not released? like a canary channel or something?

thank you

---

<div class="post-metadata">

**Author:** ![HGantz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/hgantz/32/95_2.png) [@HGantz](https://forum.api.combocurve.com/u/HGantz)\
**Post date:** [September 1, 2023, 2:06pm UTC](https://forum.api.combocurve.com/t/creating-forecast-and-scenarios-for-projects-via-api/238/6 "2023-09-01T14:06:38Z")

</div>

If you are referring to the econ features I mentioned previously, they were released yesterday evening.

Edit:  
Here are the [qualifiers docs](https://docs.api.combocurve.com/#fb8e09e3-f4e6-4937-9789-a255883c0f26)

Here are the well [assignment docs](https://docs.api.combocurve.com/#d2e7b12e-9398-4b0a-9687-77f5e05234dd)

Here are the [econ assignment docs](https://docs.api.combocurve.com/#0c396f86-6618-4498-9567-766e3bf36be1)

and if you open the econ-models folder in the documentation you will see that we now support all econ models.
