API getting the wells used by a project returns nothing

Hi CC Team,

I guess I don’t understand the concept of “project wells”. All I know is this call returns nothing most of the time depending on the project passed in:

GETget-project-wells

https://api.combocurve.com/v1/projects/:projectId/wells?skip=0&take=25&sort=&cursor=&api10=&api12=&county=&state=&wellName=&chosenID=&inptID=&api14=&createdAt=&updatedAt=&dataSource=&currentOperator=

There is a workaround call which is get_wells. The only way I could use the call is by passing in individual well API, which is very inefficient. I could potentially make thousands of calls for fetching the wells in a project because well list concept is not supported, which enable me to pass in a list of well APIs.

Please let me know if I am missing something here.

Many thanks,

In ComboCurve there are two different Scopes that a Well can have, either “Project” or “Company”. The “get-project-company-wells” endpoint will return Well records with a “Company” Scope which are associated with the input ProjectId. The “get-project-wells” endpoint will return Well records with a “Project” Scope which are associated with the input ProjectId.

In order to check the Scope of a given Well record through the UI you can follow these steps:

  1. Click the column header button on the well table

  2. Select the Scope header and click Apply
    image

  3. The Well table should now display the Scope field

In the above example, the “get-project-company-wells” endpoint would return the 'THOMPSON UNIT" Well, and the “get-project-wells” would return the “TEST 3” Well.

1 Like