Get forecast output by id - 404 error

Hi,

I am having issues getting forecast output by id. Here are the inputs:

project_id = '62c84707e7867800124d5633'

forecast_id:
image

well_id:
image

url = 'https://api.combocurve.com/v1/https://api.combocurve.com/v1/projects/62c84707e7867800124d5633/forecasts/62c85d485d7bc50014ab320c/outputs/624247d2c7d215e0fa05df3b?take=200'

And I get a 404 error with this message:

'No forecast data was found with id `624247d2c7d215e0fa05df3b` in project `62c84707e7867800124d5633` and forecast `62c85d485d7bc50014ab320c`

Looks to me like the format of the call should be a little different. Can you try it like this…

https://api.combocurve.com/v1/projects/62c84707e7867800124d5633/forecasts/62c85d485d7bc50014ab320c/outputs?well=624247d2c7d215e0fa05df3b&take=200

I was going by the documentation:
image

I tried your suggestion and got TypeError:
'624247d2c7d215e0fa05df3b?take=200 is not a valid ObjectId'

OK, I was looking at the other endpoint documentation. I’ll ask some of the more knowledgable guys.

Hey Eduardo,
I just wanted to ensure that the parameters you are sending are correct
projectId = your projectId (this is probably correct)
forecastId = your forecastId ( this is also probably correct)
id = this is the Id for the forecast data not the wellId.
You can find that id if you go to https://api.combocurve.com/v1/projects/:projectId/forecasts/:forecastId/outputs there you will see “id” in the response with the forecast data Id.

That is my issue thanks! Can I then query to a specific well using this at the end ?well="well_id"

You can use the same endpoint https://api.combocurve.com/v1/projects/:projectId/forecasts/:forecastId/outputs That has all of the forecast data outputs for the specific forecast within your project. There you can provide the query parameter for the well you are interested in by adding &well=624247d2c7d215e0fa05df3b at the end be sure to use & for query params not ?.

The get forecast output by id does not have a wellId query parameter.