This page maps the REST API of Beep.OilandGas.ApiService. It lists the controller groups, their base routes and the conventions that apply to all of them. Detailed routes for each lifecycle area are on the pages for that area. Routes are matched without regard to letter case.

1. Conventions

  • Authentication. Every endpoint needs a signed-in caller with an active account unless stated otherwise. See Roles and access.
  • Company headers. Business endpoints need X-OilGas-Tenant and X-OilGas-Company. See Company and field scoping.
  • Current field. Routes that contain /field/current/ work on the field the caller selected, not on a field id in the route.
  • Setup gate. Until the default repository is ready, business requests are answered 503 with a JSON body { error, status, setupUrl }. Exempt paths are /health, /api/setup/repository, /swagger, /api/auth and /.well-known.
  • Refusals. A refusal is the application's own answer to a request. It is returned as problem details with the sentence in detail: 400 for a request that cannot be done as sent, 404 for something that does not exist or is not the caller's to see, 409 when the stored data does not allow it, 403 when the caller may not do it.
  • Other failures. Any other exception is reported to the failure service and answered 500 with problem details that carry a reference. The same reference is stored with the full exception and can be read on the Failures page by an administrator.
  • Simple errors. Many controllers answer validation problems with a body of the form { "error": "..." } and status 400 or 404.
  • Commands with review and recover. Many workflow commands come as a review route, a command route and a /recover route. The recover route sends the original command again with a recovery flag, so a command whose answer was lost can be resolved without doing the work twice.
  • Connection name. Many accounting endpoints take a connectionName query value that defaults to PPDM39.
  • Swagger. The Swagger document and UI are mapped only when the host runs in the Development environment, at /swagger/v1/swagger.json.
  • Live channels. SignalR hubs are mapped at /progressHub (progress of long operations) and /hubs/workflow-notifications (workflow notifications; the connection closes when authentication expires).

2. Health

MethodRouteAnswer
GET/healthJSON with Status, Timestamp, Service and DatasourcesConfigured. HTTP 200 when the repository is Ready, otherwise 503. Anonymous.
GET/health/repositoryJSON with Status. HTTP 200 when Ready, otherwise 503. Anonymous.

The repository status is one of Unavailable, MigrationRequired, BootstrapRequired, Ready or RecoveryRequired.

3. Controller groups

GroupBase routesCoversNotes
Setup and administration/api/setup/*, /api/ppdm39/setup, /api/connections, /api/demo, /api/company-environment, /api/company-data-qualityFirst-time setup, database drivers and connections, module database bindings, PPDM39 schema migration and reference data seeding, demo data, company environment settings.See Database scripts and Configuration.
Accounts, roles and access/api/auth/repository, /api/identity/*, /api/AccessControl, /api/AssetHierarchy, /api/UserProfile, /api/personasAccount state, users, roles, permissions, asset grants, hierarchy, profiles, personas.See Roles and access.
Field and lifecycle/api/field, /api/field/current/*, /api/fields/{fieldId}/*Field selection and overview; exploration, development, production, reservoir, accounting, HSE, permits, compliance, decommissioning and work orders for the current field.Pages for each area follow.
Business process and gates/api/field/current/process, /api/field/current/gates, /api/workflow/tasksProcess instances, gate reviews, compliance process steps, and the task inbox (inbox, counts and a list).Gate actions need the GateApprover role.
Production accounting/api/accounting/*Allocation, cost, revenue, royalty, run tickets, storage, pricing, tax, trading, unitization, ownership, financial methods, reporting, and traditional AP, AR, GL, invoice and purchase order endpoints.See Production accounting.
Facilities and work orders/api/facility, /api/facility/{facilityId}/*, /api/field/current/workorderFacility records, classes, components, status, rates, licences, maintenance, monitoring, production, and work orders with scheduling, contractors and checklists.See Production operations.
Engineering calculations/api/Calculations, /api/NodalAnalysis, /api/Compressor, /api/pump, /api/FlashCalculation, /api/GasLift, /api/GasProperties, /api/OilProperties, /api/PipelineAnalysis, /api/ProductionForecasting, /api/EconomicAnalysis, /api/HydraulicPump, /api/PlungerLift, /api/SuckerRodPumping, /api/EnhancedRecovery, /api/HeatMapEngineering calculators and their stored results.See Engineering calculators.
Prospects and leases/api/ProspectIdentification, /api/prospect, /api/fields/{fieldId}/lease-acquisitionProspect screening, ranking, maturation analysis, lease evaluation.See Exploration and prospects.
Wells and geology/api/Well, /api/wellstatus, /api/stratigraphyWell lookup by UWI, status, well comparison, status facets, stratigraphic columns, units, hierarchy and well sections.Routes are listed in section 5.
PPDM39 data tools/api/DataManagement, /api/data-import, /api/ppdm39/data, /api/ppdm39/metadata, /api/ppdm39/validation, /api/ppdm39/versioning, /api/ppdm39/import-export, /api/ppdm39/audit, /api/ppdm39/defaults, /api/ppdm39/workflow, /api/syncGeneric table access, CSV import with profiling, validation, versioning and snapshots, data access audit, table metadata, workflow execution, and schema synchronisation.Table names are passed in the route. Routes are listed in section 6.
Dashboards/api/executive, /api/accounting/aggregation, /api/reservoir/aggregation, /api/fields/{fieldId}/production/dashboardAggregated figures for the role dashboards.Read only.

4. Reading a route table

On the area pages each table has these columns. Body is the request body type. Query lists query values the action reads. Access lists extra requirements on top of a signed-in account: a role, a permission, or field access (the current field check described in Company and field scoping). A column that would be empty for every row is left out.

5. Well and geology endpoints

MethodRouteBodyQuery
GET/api/Well/uwi/{uwi}
GET/api/Well/uwi/{uwi}/status
POST/api/Well/compareCompareWellsRequest
POST/api/Well/compare-multi-sourceCompareWellsMultiSourceRequest
GET/api/Well/comparison-fields
GET/api/wellstatus/reference
GET/api/wellstatus/reference/{statusType}
GET/api/wellstatus/reference/{statusType}/qualifiers/{status}
GET/api/wellstatus/reference/{statusType}/qualifier-values/{status}/{qualifier}
GET/api/wellstatus/{uwi}/current
GET/api/wellstatus/{uwi}/page-data
GET/api/wellstatus/{uwi}/history
PUT/api/wellstatus/{uwi}/facetWellServices.SetFacetRequest
GET/api/stratigraphy/columnsfilters
GET/api/stratigraphy/unitsfilters
GET/api/stratigraphy/hierarchyfilters
GET/api/stratigraphy/well-sectionsfilters
GET/api/stratigraphy/well-sections/well/{uwi}

6. PPDM39 data tools

MethodRouteBodyQuery
POST/api/data-import/csv/{tableName}
GET/api/data-import/profile/{tableName}
GET/api/DataManagement/{tableName}filters
GET/api/DataManagement/{tableName}/{id}
POST/api/DataManagement/{tableName}JsonElement
POST/api/DataManagement/{tableName}/batchList<JsonElement>
PUT/api/DataManagement/{tableName}/{id}JsonElement
PUT/api/DataManagement/{tableName}JsonElement
DELETE/api/DataManagement/{tableName}/{id}
POST/api/DataManagement/validate/{tableName}object
GET/api/DataManagement/validate/{tableName}/rules
POST/api/DataManagement/validate-foreign-keys/{tableName}List<Dictionary<string
POST/api/DataManagement/validate-foreign-keys/{tableName}/rowDictionary<stringrowNumber
GET/api/DataManagement/metadata/{tableName}
POST/api/DataManagement/validate-table/{tableName}TableValidationOptions?
GET/api/sync/schemas
POST/api/sync/run/{schemaId}
POST/api/sync/run-all
GET/api/sync/reconciliation
POST/api/sync/init-schemassourceDataSource, destDataSource
POST/api/sync/save-schemas
POST/api/sync/load-schemas
GET/api/ppdm39/audit/statisticsfrom, to, tableName
GET/api/ppdm39/audit/recentfrom, to
GET/api/ppdm39/audit/entity/{tableName}entityId
POST/api/ppdm39/data/{tableName}GetEntitiesRequest
GET/api/ppdm39/data/{tableName}/{id}connectionName
POST/api/ppdm39/data/{tableName}/insertJsonElementconnectionName
PUT/api/ppdm39/data/{tableName}/{id}JsonElementconnectionName
DELETE/api/ppdm39/data/{tableName}/{id}connectionName
GET/api/ppdm39/data/{tableName}/exportconnectionName
POST/api/ppdm39/data/{tableName}/importconnectionName
GET/api/ppdm39/defaults/{entityType}connectionName
GET/api/ppdm39/defaults/well-status/{statusId}/facetsconnectionName
GET/api/ppdm39/defaults/active-indicator
GET/api/ppdm39/defaults/inactive-indicator
POST/api/ppdm39/import-export/csv/{tableName}operationId, connectionName, validateForeignKeys
POST/api/ppdm39/import-export/csv/{tableName}/exportExportRequest?connectionName, operationId
GET/api/ppdm39/import-export/progress/{operationId}
GET/api/ppdm39/metadata/categories
GET/api/ppdm39/metadata/categories/{categoryId}/tables
GET/api/ppdm39/metadata/tables/by-prefix/{prefix}
GET/api/ppdm39/metadata/tables/by-module/{module}
GET/api/ppdm39/metadata/modules
GET/api/ppdm39/metadata/tables/{tableName}
GET/api/ppdm39/metadata/tables/{tableName}/children
POST/api/ppdm39/validation/{tableName}/validateValidationRequest
POST/api/ppdm39/validation/{tableName}/validate-batchBatchValidationRequest
GET/api/ppdm39/validation/{tableName}/rules
POST/api/ppdm39/versioning/{tableName}/{entityId}/create-versionVersioningRequest
GET/api/ppdm39/versioning/{tableName}/{entityId}/versionsconnectionName
GET/api/ppdm39/versioning/{tableName}/{entityId}/versions/{versionNumber}connectionName
POST/api/ppdm39/versioning/{tableName}/{entityId}/restoreRestoreVersionRequest
POST/api/ppdm39/versioning/snapshots
GET/api/ppdm39/versioning/snapshots
POST/api/ppdm39/workflow/executeWorkflowExecutionRequestphase
GET/api/ppdm39/workflow/phase/{phase}fieldId
GET/api/ppdm39/workflowfieldId, phase
POST/api/ppdm39/workflowWorkflowDefinitionphase
GET/api/ppdm39/workflow/{workflowId}/historylimit
GET/api/ppdm39/workflow/{workflowId}/progress
POST/api/ppdm39/workflow/{workflowId}/cancel

7. Business process and task inbox

MethodRouteBodyQueryAccess
GET/api/workflow/tasks/inbox
GET/api/workflow/tasks/counts
GET/api/workflow/tasks
GET/api/field/current/process/definitionsfield access
GET/api/field/current/process/definitions/{processId}field access
GET/api/field/current/process/definitions/category/{categoryId}field access
GET/api/field/current/process/definitions/jurisdiction/{tag}field access
POST/api/field/current/process/instancesProcessInstanceRequestfield access
POST/api/field/current/process/instances/start-reviewProcessInstanceRequestfield access
GET/api/field/current/process/instancesfield access
GET/api/field/current/process/instances/{instanceId}field access
GET/api/field/current/process/instances/{instanceId}/transitionsfield access
POST/api/field/current/process/instances/{instanceId}/transitionsProcessTransitionRequestfield access
GET/api/field/current/process/instances/{instanceId}/historyfield access
PATCH/api/field/current/process/instances/{instanceId}/steps/{stepId}Beep.OilandGas.Models.Data.Process.PROCESS_STEP_DATAfield access
POST/api/field/current/process/instances/{instanceId}/closeProcessCloseRequestfield access
GET/api/field/current/process/templatesfield access
POST/api/field/current/maintenance-handoffs/execution-permit/asset-return/statusfield access READ
POST/api/field/current/maintenance-handoffs/execution-permit/asset-return/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/asset-returnfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/asset-return/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/asset-return/evidencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/closure/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/closurefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/closure/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/closure/statusfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-acceptance/reportfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-acceptance/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-acceptancefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-acceptance/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-acceptance/statusfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-handofffield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-handoff/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/return-handoff/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/completion-decision/statusfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/completion-decision/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/completion-decisionfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/completion-decision/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/completion-reportfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/report-handoff/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/report-handofffield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/report-handoff/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/completion-reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/labor-usage/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/labor-usagefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/labor-usage/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-usage/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-usagefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-usage/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-submission/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-submissionfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-submission/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-submission/inspection-reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-start/recordedfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-start/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-startfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/work-start/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/execution-prerequisitesfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/recorded-approvalfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/execution-requirementsfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/documents/contributorsfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/documents/contentfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/documents/catalogfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/documents/sourcefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/document-acceptancefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/document-acceptance/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/document-acceptance/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-acceptancefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-acceptance/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-acceptance/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-assignments/policy-evidencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-releasesfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-releases/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-releases/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-assignments/rosterfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-assignments/currentfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-assignments/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-assignmentsfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-assignments/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/personnel-sourcefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-acceptance/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-acceptancefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-acceptance/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/materials/catalogfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/material-readinessfield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocations/release/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocations/releasefield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocations/release/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocations/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocation-reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocationsfield access WRITE
POST/api/field/current/maintenance-handoffs/materials/allocations/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/materials/source-reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/decisionfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/decision/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/decision/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/approval/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permitfield access WRITE
POST/api/field/current/maintenance-handoffs/execution-permit/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/assigned-stage/inspectionsfield access WRITE
POST/api/field/current/maintenance-handoffs/assigned-stage/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/acceptance/task-reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/acceptance/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/acceptance/reviewfield access WRITE
POST/api/field/current/maintenance-handoffs/acceptancefield access WRITE
POST/api/field/current/maintenance-handoffs/acceptance/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/choicesfield access WRITE
POST/api/field/current/maintenance-handoffs/recovery/referencefield access WRITE
POST/api/field/current/maintenance-handoffs/reviewfield access WRITE
POST/api/field/current/maintenance-handoffsfield access WRITE
POST/api/field/current/maintenance-handoffs/recoveryfield access WRITE
POST/api/field/current/maintenance-handoffs/recorded-work/pages/{page:int}/{size:int}field access READ
GET/api/company/maintenance-return-policies/reviewrole Administrator
POST/api/company/maintenance-return-policies/recordrole Administrator
POST/api/company/maintenance-return-policies/recovery/referencerole Administrator
GET/api/company/current/personnel-identitiesrole Administrator
GET/api/company/personnel-policies/reviewrole Administrator
POST/api/company/personnel-policies/recordrole Administrator
POST/api/company/personnel-policies/recovery/referencerole Administrator
GET/api/field/current/process/compliance/obligationsjurisdiction, obligationTypefield access
GET/api/field/current/process/compliance/obligations/duedaysAheadfield access
POST/api/field/current/process/compliance/reportsComplianceReportRequestfield access
GET/api/field/current/process/compliance/reports/{reportId}/statusfield access
POST/api/field/current/process/compliance/reports/{reportId}/remediateRemediationRequestfield access; role Compliance
POST/api/field/current/gates/submit/{gateId}GateReviewSubmitRequestfield access
POST/api/field/current/gates/{instanceId}/approveGateReviewDecisionRequestfield access; role GateApprover
POST/api/field/current/gates/{instanceId}/rejectGateReviewDecisionRequestfield access; role GateApprover
POST/api/field/current/gates/{instanceId}/deferGateReviewDecisionRequestfield access; role GateApprover
GET/api/field/current/gatesstatusfield access
GET/api/field/current/gates/{instanceId}field access
GET/api/field/current/gates/pendingfield access
GET/api/field/current/gates/{instanceId}/checklistfield access
GET/api/field/current/process/hse/incidentsseverity, statusfield access
GET/api/field/current/process/hse/incidentincidentIdfield access