Wells Post Request error

Hey There, I am working on a client request to post data to the combocurve api, I have no issues with any of the GET request, but after building, what I perceve and have compared to be the exact data need for a post request to the wells API, I continue to get an error of:

"results":[{"status":"Error","code":400,"errors":[{"name":"RequestStructureError","message":"Invalid well data structure","location":"[0]"}]

My request body looks as such:

  {
    "abstract": "None",
    "acreSpacing": null,
    "allocationType": null,
    "api10": "000000000",
    "api12": "000000000",
    "api14": "000000000",
    "ariesId": null,
    "azimuth": null,
    "basin": "ARK-LA-TX",
    "bg": null,
    "block": "None",
    "bo": null,
    "bubblePointPress": null,
    "casingId": null,
    "chokeSize": null,
    "chosenID": "000000000",
    "chosenKeyID": null,
    "completionDesign": "None",
    "completionEndDate": null,
    "completionStartDate": null,
    "country": "US",
    "county": "BALDWIN",
    "currentOperator": null,
    "currentOperatorAlias": null,
    "currentOperatorCode": null,
    "currentOperatorTicker": "OTHER",
    "customBool0": null,
    "customBool1": null,
    "customBool2": null,
    "customBool3": null,
    "customBool4": null,
    "customDate0": null,
    "customDate1": null,
    "customDate2": null,
    "customDate3": null,
    "customDate4": null,
    "customDate5": null,
    "customDate6": null,
    "customDate7": null,
    "customDate8": null,
    "customDate9": null,
    "customNumber0": null,
    "customNumber1": null,
    "customNumber10": null,
    "customNumber11": null,
    "customNumber12": null,
    "customNumber13": null,
    "customNumber14": null,
    "customNumber15": null,
    "customNumber16": null,
    "customNumber17": null,
    "customNumber18": null,
    "customNumber19": null,
    "customNumber2": null,
    "customNumber3": null,
    "customNumber4": null,
    "customNumber5": null,
    "customNumber6": null,
    "customNumber7": null,
    "customNumber8": null,
    "customNumber9": null,
    "customString0": null,
    "customString1": null,
    "customString10": null,
    "customString11": null,
    "customString12": null,
    "customString13": null,
    "customString14": null,
    "customString15": null,
    "customString16": null,
    "customString17": null,
    "customString18": null,
    "customString19": null,
    "customString2": null,
    "customString3": null,
    "customString4": null,
    "customString5": null,
    "customString6": null,
    "customString7": null,
    "customString8": null,
    "customString9": null,
    "dataSource": null,
    "dataSourceCustomName": null,
    "dateRigRelease": null,
    "dewPointPress": null,
    "distanceFromBaseOfZone": null,
    "distanceFromTopOfZone": null,
    "district": "None",
    "drainageArea": null,
    "drillEndDate": null,
    "drillStartDate": null,
    "drillinginfoId": null,
    "elevation": 238,
    "elevationType": null,
    "field": "WILDCAT",
    "firstAdditiveVolume": null,
    "firstClusterCount": null,
    "firstFluidVolume": null,
    "firstFracVendor": null,
    "firstMaxInjectionPressure": null,
    "firstMaxInjectionRate": null,
    "firstProdDate": null,
    "firstPropWeight": null,
    "firstStageCount": null,
    "firstTestFlowTbgPress": null,
    "firstTestGasVol": null,
    "firstTestGor": null,
    "firstTestOilVol": null,
    "firstTestWaterVol": null,
    "firstTreatmentType": "None",
    "flowPath": null,
    "fluidType": "None",
    "footageInLandingZone": null,
    "formationThicknessMean": null,
    "fractureConductivity": null,
    "gasAnalysisDate": null,
    "gasC1": null,
    "gasC2": null,
    "gasC3": null,
    "gasCo2": null,
    "gasGatherer": "None",
    "gasH2": null,
    "gasH2o": null,
    "gasH2s": null,
    "gasHe": null,
    "gasIc4": null,
    "gasIc5": null,
    "gasN2": null,
    "gasNc10": null,
    "gasNc4": null,
    "gasNc5": null,
    "gasNc6": null,
    "gasNc7": null,
    "gasNc8": null,
    "gasNc9": null,
    "gasO2": null,
    "gasSpecificGravity": null,
    "grossPerforatedInterval": null,
    "groundElevation": 238,
    "heelLatitude": null,
    "heelLongitude": null,
    "holeDirection": "HORIZONTAL",
    "horizontalSpacing": null,
    "hzWellSpacingAnyZone": null,
    "hzWellSpacingSameZone": null,
    "id": null,
    "ihsId": null,
    "initialRespress": null,
    "initialRestemp": null,
    "landingZone": null,
    "landingZoneBase": null,
    "landingZoneTop": null,
    "lateralLength": null,
    "leaseName": "lease name",
    "leaseNumber": "None",
    "lowerPerforation": null,
    "matrixPermeability": null,
    "measuredDepth": null,
    "nglGatherer": null,
    "numTreatmentRecords": null,
    "oilApiGravity": null,
    "oilGatherer": "None",
    "oilSpecificGravity": null,
    "padName": null,
    "parentChildAnyZone": null,
    "parentChildSameZone": null,
    "percentInZone": null,
    "perfLateralLength": null,
    "permitDate": 1278547200000,
    "phdwinId": null,
    "play": "None",
    "porosity": null,
    "previousOperator": null,
    "previousOperatorAlias": null,
    "previousOperatorCode": null,
    "previousOperatorTicker": null,
    "primaryProduct": null,
    "prmsReservesCategory": null,
    "prmsReservesSubCategory": null,
    "prmsResourcesClass": null,
    "productionMethod": null,
    "proppantMeshSize": null,
    "proppantType": null,
    "range": "04E",
    "recoveryMethod": null,
    "refracAdditiveVolume": null,
    "refracClusterCount": null,
    "refracDate": null,
    "refracFluidVolume": null,
    "refracFracVendor": null,
    "refracMaxInjectionPressure": null,
    "refracMaxInjectionRate": null,
    "refracPropWeight": null,
    "refracStageCount": null,
    "refracTreatmentType": null,
    "rig": null,
    "rs": null,
    "rsegId": null,
    "section": "26",
    "sg": null,
    "so": null,
    "spudDate": 1281830400000,
    "stageSpacing": null,
    "state": "AL",
    "status": "ABANDONED",
    "subplay": null,
    "surfaceLatitude": 31.1950893402,
    "surfaceLongitude": -87.6362915039,
    "survey": "None",
    "sw": null,
    "targetFormation": null,
    "tgsId": null,
    "thickness": null,
    "til": null,
    "toeInLandingZone": "31.1963902",
    "toeLatitude": -87.635559082,
    "toeLongitude": null,
    "toeUp": null,
    "township": "03N",
    "trueVerticalDepth": 16000,
    "tubingDepth": null,
    "tubingId": null,
    "typeCurveArea": null,
    "upperPerforation": null,
    "verticalSpacing": null,
    "vtWellSpacingAnyZone": null,
    "vtWellSpacingSameZone": null,
    "wellName": "lease name",
    "wellNumber": "None",
    "wellType": "None",
    "zi": null
  }

Hey, @agaddis02 welcome to the forum!
There are a few issues I noticed from your example body:

  1. api10: Must contain only digits and have a length of 10
  2. api12: Must contain only digits and have a length of 12
  3. api14: Must contain only digits and have a length of 14
  4. permitDate: must be an ISO date ex: “2023-03-27T07:04:34.708Z”
  5. dataSource: is a required field ex: “di”, “ihs”, “phdwin”, “aries”, “internal”, or “other”
  6. toeLongitude: is a required field because toeLatitude is input

Thank you, this did the trick!

1 Like