C# client for the ComboCurve REST API
View the Project on GitHub insidepetroleum/combocurve-client-csharp
All URIs are relative to https://api.combocurve.com
| Method | HTTP request | Description |
|---|---|---|
| DeleteProjectInventoryProposedWellById | DELETE /v1/projects/{projectId}/inventory/proposed-wells/{id} | Deletes the proposed well that matches the given id in the project's inventory plans, with its stick and dependent data. An id that is not a proposed well of the project, or a well whose promotion to a project well is in progress, deletes nothing. |
| DeleteProjectInventoryProposedWells | DELETE /v1/projects/{projectId}/inventory/proposed-wells | Deletes the proposed wells of the project's inventory plans that match the given filters, with their sticks and dependent data. A filter is required. A well whose promotion to a project well is in progress is not deleted. |
| GetProjectInventoryProposedWellById | GET /v1/projects/{projectId}/inventory/proposed-wells/{id} | Returns the proposed well that matches the given id in the project's inventory plans. A real well, a promoted well, a facility or a proposed well of another project is not found. |
| GetProjectInventoryProposedWells | GET /v1/projects/{projectId}/inventory/proposed-wells | Returns the proposed wells of the project's inventory plans. Each well has the same fields as a project well, plus the `planId` of its plan and its `promotionStatus`. Wells that are already promoted to project wells are not returned; read them from `GET /v1/projects/{projectId}/wells`. |
| HeadProjectInventoryProposedWells | HEAD /v1/projects/{projectId}/inventory/proposed-wells | Returns the number of proposed wells of the project's inventory plans in `X-Query-Count`, without a body. |
| PatchProjectInventoryProposedWellById | PATCH /v1/projects/{projectId}/inventory/proposed-wells/{id} | Updates the proposed well that matches the given id in the project's inventory plans. A different `planId` is refused. |
| PatchProjectInventoryProposedWells | PATCH /v1/projects/{projectId}/inventory/proposed-wells | Updates proposed wells of the project's inventory plans. A different `planId` is refused, and so is a well whose promotion to a project well is in progress. Project Custom Headers fields must be sent as string. |
| PostProjectInventoryProposedWells | POST /v1/projects/{projectId}/inventory/proposed-wells | Creates proposed wells in existing inventory plans of the project. Each record takes the project well fields plus the `planId` of its plan. A plan holds at most 5,000 proposed wells. Proposed wells are not added to the project's wells. Project Custom Headers fields must be sent as string. |
| PutProjectInventoryProposedWellById | PUT /v1/projects/{projectId}/inventory/proposed-wells/{id} | Replaces the proposed well that matches the given id in the project's inventory plans. A different `planId` is refused. |
| PutProjectInventoryProposedWells | PUT /v1/projects/{projectId}/inventory/proposed-wells | Replaces the proposed wells that match a record by Chosen ID and data source, and creates the rest. A created well needs the `planId` of an existing plan of the project. A replaced well stays in its plan: a different `planId` is refused, and so is a well whose promotion to a project well is in progress. Project Custom Headers fields must be sent as string. |
void DeleteProjectInventoryProposedWellById (string projectId, string id)
Deletes the proposed well that matches the given id in the project’s inventory plans, with its stick and dependent data. An id that is not a proposed well of the project, or a well whose promotion to a project well is in progress, deletes nothing.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class DeleteProjectInventoryProposedWellByIdExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var id = "id_example"; // string |
try
{
// Deletes the proposed well that matches the given id in the project's inventory plans, with its stick and dependent data. An id that is not a proposed well of the project, or a well whose promotion to a project well is in progress, deletes nothing.
apiInstance.DeleteProjectInventoryProposedWellById(projectId, id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.DeleteProjectInventoryProposedWellById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| id | string |
void (empty response body)
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 204 | OK | * X-Delete-Count - The number of records that were deleted. | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteProjectInventoryProposedWells (string projectId, string chosenID = null, string dataSource = null, string id = null)
Deletes the proposed wells of the project’s inventory plans that match the given filters, with their sticks and dependent data. A filter is required. A well whose promotion to a project well is in progress is not deleted.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class DeleteProjectInventoryProposedWellsExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var chosenID = new string[] { "chosenID_example" }; // IEnumerable<string> | filter by chosenID (optional)
var dataSource = "dataSource_example"; // string | filter by dataSource (optional)
var id = new string[] { "id_example" }; // IEnumerable<string> | filter by id (optional)
try
{
// Deletes the proposed wells of the project's inventory plans that match the given filters, with their sticks and dependent data. A filter is required. A well whose promotion to a project well is in progress is not deleted.
apiInstance.DeleteProjectInventoryProposedWells(projectId, chosenID, dataSource, id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.DeleteProjectInventoryProposedWells: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| chosenID | string | filter by chosenID | [optional] |
| dataSource | string | filter by dataSource | [optional] |
| id | string | filter by id | [optional] |
void (empty response body)
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 204 | OK | * X-Delete-Count - The number of records that were deleted. | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProposedWell GetProjectInventoryProposedWellById (string projectId, string id)
Returns the proposed well that matches the given id in the project’s inventory plans. A real well, a promoted well, a facility or a proposed well of another project is not found.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class GetProjectInventoryProposedWellByIdExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var id = "id_example"; // string |
try
{
// Returns the proposed well that matches the given id in the project's inventory plans. A real well, a promoted well, a facility or a proposed well of another project is not found.
ProposedWell result = apiInstance.GetProjectInventoryProposedWellById(projectId, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.GetProjectInventoryProposedWellById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| id | string |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 200 | OK | - | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, the project does not exist, or the proposed well does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ICollection<ProposedWell> GetProjectInventoryProposedWells (string projectId, int? skip = null, int? take = null, string sort = null, string cursor = null, string planId = null, string api10 = null, string api12 = null, string county = null, string state = null, string wellName = null, string chosenID = null, string inptID = null, string api14 = null, DateTimeOffset? createdAt = null, DateTimeOffset? updatedAt = null, string dataSource = null, string currentOperator = null)
Returns the proposed wells of the project’s inventory plans. Each well has the same fields as a project well, plus the planId of its plan and its promotionStatus. Wells that are already promoted to project wells are not returned; read them from GET /v1/projects/{projectId}/wells.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class GetProjectInventoryProposedWellsExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var skip = 56; // int? | number of items to skip (optional) (default to 0)
var take = 56; // int? | max records to return (optional) (default to 25) (between 1 and 200)
var sort = "sort_example"; // string | field to sort by, including + or - at the beginning for ascending or descending order, respectively (optional)
var cursor = "cursor_example"; // string | used in pagination to get the next page (optional)
var planId = "planId_example"; // string | Only the proposed wells of this inventory plan. (optional)
var api10 = new string[] { "api10_example" }; // IEnumerable<string> | filter by api10 (optional)
var api12 = new string[] { "api12_example" }; // IEnumerable<string> | filter by api12 (optional)
var county = new string[] { "county_example" }; // IEnumerable<string> | filter by county (optional)
var state = new string[] { "state_example" }; // IEnumerable<string> | filter by state (optional)
var wellName = new string[] { "wellName_example" }; // IEnumerable<string> | filter by wellName (optional)
var chosenID = new string[] { "chosenID_example" }; // IEnumerable<string> | filter by chosenID (optional)
var inptID = "inptID_example"; // string | filter by inptID (optional)
var api14 = new string[] { "api14_example" }; // IEnumerable<string> | filter by api14 (optional)
var createdAt = DateTimeOffset.Parse("2013-10-20"); // DateTimeOffset? | filter by createdAt (optional)
var updatedAt = DateTimeOffset.Parse("2013-10-20"); // DateTimeOffset? | filter by updatedAt (optional)
var dataSource = "dataSource_example"; // string | filter by dataSource (optional)
var currentOperator = "currentOperator_example"; // string | filter by currentOperator (optional)
try
{
// Returns the proposed wells of the project's inventory plans. Each well has the same fields as a project well, plus the `planId` of its plan and its `promotionStatus`. Wells that are already promoted to project wells are not returned; read them from `GET /v1/projects/{projectId}/wells`.
ICollection<ProposedWell> result = apiInstance.GetProjectInventoryProposedWells(projectId, skip, take, sort, cursor, planId, api10, api12, county, state, wellName, chosenID, inptID, api14, createdAt, updatedAt, dataSource, currentOperator);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.GetProjectInventoryProposedWells: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| skip | int? | number of items to skip | [optional] [default to 0] |
| take | int? | max records to return | [optional] [default to 25] [between 1 and 200] |
| sort | string | field to sort by, including + or - at the beginning for ascending or descending order, respectively | [optional] |
| cursor | string | used in pagination to get the next page | [optional] |
| planId | string | Only the proposed wells of this inventory plan. | [optional] |
| api10 | string | filter by api10 | [optional] |
| api12 | string | filter by api12 | [optional] |
| county | string | filter by county | [optional] |
| state | string | filter by state | [optional] |
| wellName | string | filter by wellName | [optional] |
| chosenID | string | filter by chosenID | [optional] |
| inptID | string | filter by inptID | [optional] |
| api14 | string | filter by api14 | [optional] |
| createdAt | DateTimeOffset? | filter by createdAt | [optional] |
| updatedAt | DateTimeOffset? | filter by updatedAt | [optional] |
| dataSource | string | filter by dataSource | [optional] |
| currentOperator | string | filter by currentOperator | [optional] |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 200 | OK | * Link - Indicates a typed relationship with another resource, where the relation type is defined by RFC 5988. We include the relationships next, prev, first and last, which can be used to move between pages of the list of results. | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void HeadProjectInventoryProposedWells (string projectId, int? skip = null, int? take = null, string planId = null, string api10 = null, string api12 = null, string county = null, string state = null, string wellName = null, string chosenID = null, string inptID = null, string api14 = null, DateTimeOffset? createdAt = null, DateTimeOffset? updatedAt = null, string dataSource = null, string currentOperator = null)
Returns the number of proposed wells of the project’s inventory plans in X-Query-Count, without a body.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class HeadProjectInventoryProposedWellsExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var skip = 56; // int? | number of items to skip (optional) (default to 0)
var take = 56; // int? | max records to return (optional) (default to 25) (between 1 and 1000)
var planId = "planId_example"; // string | Only the proposed wells of this inventory plan. (optional)
var api10 = new string[] { "api10_example" }; // IEnumerable<string> | filter by api10 (optional)
var api12 = new string[] { "api12_example" }; // IEnumerable<string> | filter by api12 (optional)
var county = new string[] { "county_example" }; // IEnumerable<string> | filter by county (optional)
var state = new string[] { "state_example" }; // IEnumerable<string> | filter by state (optional)
var wellName = new string[] { "wellName_example" }; // IEnumerable<string> | filter by wellName (optional)
var chosenID = new string[] { "chosenID_example" }; // IEnumerable<string> | filter by chosenID (optional)
var inptID = "inptID_example"; // string | filter by inptID (optional)
var api14 = new string[] { "api14_example" }; // IEnumerable<string> | filter by api14 (optional)
var createdAt = DateTimeOffset.Parse("2013-10-20"); // DateTimeOffset? | filter by createdAt (optional)
var updatedAt = DateTimeOffset.Parse("2013-10-20"); // DateTimeOffset? | filter by updatedAt (optional)
var dataSource = "dataSource_example"; // string | filter by dataSource (optional)
var currentOperator = "currentOperator_example"; // string | filter by currentOperator (optional)
try
{
// Returns the number of proposed wells of the project's inventory plans in `X-Query-Count`, without a body.
apiInstance.HeadProjectInventoryProposedWells(projectId, skip, take, planId, api10, api12, county, state, wellName, chosenID, inptID, api14, createdAt, updatedAt, dataSource, currentOperator);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.HeadProjectInventoryProposedWells: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| skip | int? | number of items to skip | [optional] [default to 0] |
| take | int? | max records to return | [optional] [default to 25] [between 1 and 1000] |
| planId | string | Only the proposed wells of this inventory plan. | [optional] |
| api10 | string | filter by api10 | [optional] |
| api12 | string | filter by api12 | [optional] |
| county | string | filter by county | [optional] |
| state | string | filter by state | [optional] |
| wellName | string | filter by wellName | [optional] |
| chosenID | string | filter by chosenID | [optional] |
| inptID | string | filter by inptID | [optional] |
| api14 | string | filter by api14 | [optional] |
| createdAt | DateTimeOffset? | filter by createdAt | [optional] |
| updatedAt | DateTimeOffset? | filter by updatedAt | [optional] |
| dataSource | string | filter by dataSource | [optional] |
| currentOperator | string | filter by currentOperator | [optional] |
void (empty response body)
API Key, Service Account
| Status code | Description | Response headers |
|————-|————-|——————|
| 200 | OK | * X-Query-Count - The number of records in this resource. When filters are provided only matching records are counted.
* Link - Indicates a typed relationship with another resource, where the relation type is defined by RFC 5988. We include the relationships next, prev, first and last, which can be used to move between pages of the list of results. |
| 400 | Bad Request. There is something wrong with the request data. | - |
| 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WellStatus PatchProjectInventoryProposedWellById (string projectId, string id, ProposedWellPatchInput proposedWell = null)
Updates the proposed well that matches the given id in the project’s inventory plans. A different planId is refused.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class PatchProjectInventoryProposedWellByIdExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var id = "id_example"; // string |
var proposedWell = new ProposedWellPatchInput(); // ProposedWellPatchInput | (optional)
try
{
// Updates the proposed well that matches the given id in the project's inventory plans. A different `planId` is refused.
WellStatus result = apiInstance.PatchProjectInventoryProposedWellById(projectId, id, proposedWell);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.PatchProjectInventoryProposedWellById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| id | string | ||
| proposedWell | ProposedWellPatchInput | [optional] |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 200 | OK | - | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, the project does not exist, or the proposed well does not exist. | - | | 409 | Conflict. The well's promotion to a project well is in progress. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WellMultiStatusResponse PatchProjectInventoryProposedWells (string projectId, List
proposedWell = null)
Updates proposed wells of the project’s inventory plans. A different planId is refused, and so is a well whose promotion to a project well is in progress. Project Custom Headers fields must be sent as string.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class PatchProjectInventoryProposedWellsExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var proposedWell = new List<ProposedWellPatchInput>(); // List<ProposedWellPatchInput> | Proposed wells to update. See ProposedWellPatchInputList. (optional)
try
{
// Updates proposed wells of the project's inventory plans. A different `planId` is refused, and so is a well whose promotion to a project well is in progress. Project Custom Headers fields must be sent as string.
WellMultiStatusResponse result = apiInstance.PatchProjectInventoryProposedWells(projectId, proposedWell);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.PatchProjectInventoryProposedWells: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| proposedWell | List<ProposedWellPatchInput> | Proposed wells to update. See ProposedWellPatchInputList. | [optional] [Max number of items is 1000] |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 207 | Multi-Status | - | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WellMultiStatusResponse PostProjectInventoryProposedWells (string projectId, List
proposedWell = null)
Creates proposed wells in existing inventory plans of the project. Each record takes the project well fields plus the planId of its plan. A plan holds at most 5,000 proposed wells. Proposed wells are not added to the project’s wells. Project Custom Headers fields must be sent as string.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class PostProjectInventoryProposedWellsExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var proposedWell = new List<ProposedWellInput>(); // List<ProposedWellInput> | Proposed wells to create. See ProposedWellInputList. (optional)
try
{
// Creates proposed wells in existing inventory plans of the project. Each record takes the project well fields plus the `planId` of its plan. A plan holds at most 5,000 proposed wells. Proposed wells are not added to the project's wells. Project Custom Headers fields must be sent as string.
WellMultiStatusResponse result = apiInstance.PostProjectInventoryProposedWells(projectId, proposedWell);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.PostProjectInventoryProposedWells: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| proposedWell | List<ProposedWellInput> | Proposed wells to create. See ProposedWellInputList. | [optional] [Max number of items is 1000] |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 207 | Multi-Status | - | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WellStatus PutProjectInventoryProposedWellById (string projectId, string id, ProposedWellPutInput proposedWell = null)
Replaces the proposed well that matches the given id in the project’s inventory plans. A different planId is refused.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class PutProjectInventoryProposedWellByIdExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var id = "id_example"; // string |
var proposedWell = new ProposedWellPutInput(); // ProposedWellPutInput | (optional)
try
{
// Replaces the proposed well that matches the given id in the project's inventory plans. A different `planId` is refused.
WellStatus result = apiInstance.PutProjectInventoryProposedWellById(projectId, id, proposedWell);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.PutProjectInventoryProposedWellById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| id | string | ||
| proposedWell | ProposedWellPutInput | [optional] |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 200 | OK | - | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, the project does not exist, or the proposed well does not exist. | - | | 409 | Conflict. The well's promotion to a project well is in progress. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WellMultiStatusResponse PutProjectInventoryProposedWells (string projectId, List
proposedWell = null)
Replaces the proposed wells that match a record by Chosen ID and data source, and creates the rest. A created well needs the planId of an existing plan of the project. A replaced well stays in its plan: a different planId is refused, and so is a well whose promotion to a project well is in progress. Project Custom Headers fields must be sent as string.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using ComboCurve.Api.Api;
using ComboCurve.Api.Auth;
using ComboCurve.Api.Client;
using ComboCurve.Api.Model;
namespace Example
{
public class PutProjectInventoryProposedWellsExample
{
public static void Main()
{
// Use this to create your service account manually
var serviceAccount = new ServiceAccount
{
ClientEmail = "YOUR_CLIENT_EMAIL",
ClientId = "YOUR_CLIENT_ID",
PrivateKey = "YOUR_PRIVATE_KEY"
};
// Or use this to load it from a JSON file
// var serviceAccount = ServiceAccount.FromFile("PATH_TO_JSON_FILE");
// Set your API key
var apiKey = "YOUR_API_KEY";
var apiInstance = new ComboCurveV1Api(serviceAccount, apiKey);
// Or use the specific API class (Recommended)
// var apiInstance = new ProjectInventoryProposedWellsApi(serviceAccount, apiKey);
var projectId = "projectId_example"; // string |
var proposedWell = new List<ProposedWellPutInput>(); // List<ProposedWellPutInput> | Proposed wells to replace or create. See ProposedWellPutInputList. (optional)
try
{
// Replaces the proposed wells that match a record by Chosen ID and data source, and creates the rest. A created well needs the `planId` of an existing plan of the project. A replaced well stays in its plan: a different `planId` is refused, and so is a well whose promotion to a project well is in progress. Project Custom Headers fields must be sent as string.
WellMultiStatusResponse result = apiInstance.PutProjectInventoryProposedWells(projectId, proposedWell);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ProjectInventoryProposedWellsApi.PutProjectInventoryProposedWells: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | string | ||
| proposedWell | List<ProposedWellPutInput> | Proposed wells to replace or create. See ProposedWellPutInputList. | [optional] [Max number of items is 1000] |
API Key, Service Account
| Status code | Description | Response headers | |————-|————-|——————| | 207 | Multi-Status | - | | 400 | Bad Request. There is something wrong with the request data. | - | | 404 | Not Found. Inventory Management is not enabled, or the project does not exist. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]