---
title: Bulk Add / Update Horizontal Frac Data
slug: bulk-add-update-horizontal-frac-data
docTags: 
createdAt: 2025-03-29T02:19:44.540Z
---

{
  "id": "LzTIPEGtNQMzOHFav1omX",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://data.onxecta.com/api/production/horizontalfrac",
    "servers": [
      {
        "url": "https://data.onxecta.com/api/production/horizontalfrac",
        "description": "AWS Cloud API Endpoint"
      },
      {
        "url": "http://localhost/api/production/horizontalfrac",
        "description": "Local Testing API Endpoint"
      }
    ],
    "name": "Bulk Add / Update Horizontal Frac Data",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "array",
          "description": "",
          "customType": "HorizontalFracInput[]",
          "schema": [
            {
              "name": "uwi",
              "kind": "required",
              "type": "string",
              "description": "<p>Well UWI (commonly the API number - used to link to daily production)</p>"
            },
            {
              "name": "date",
              "kind": "required",
              "type": "string<date-time>",
              "description": "<p>Datetime of the event. DatetimeOffset (with timezone) in ISO 8601 format. Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
              "format": "date-time"
            },
            {
              "name": "averageEffectiveSpacing",
              "kind": "optional",
              "type": "number<double>",
              "nullable": true,
              "description": "Average distance to offset wells at time of completion",
              "format": "double"
            },
            {
              "name": "minEffectiveSpacing",
              "kind": "optional",
              "type": "number<double>",
              "nullable": true,
              "description": "Distance to the closest offset well at time of completion",
              "format": "double"
            },
            {
              "name": "type",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "<p>Completion type (Plug-n-perf, sliding sleeve, etc). It is important to standardize values to enable grouped analysis.</p>"
            },
            {
              "name": "fluidType",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "<p>Completion fluid type (X-link Gel, Slickwater, etc). It is important to standardize values to enable grouped analysis.</p>"
            },
            {
              "name": "stimulatedLength",
              "kind": "optional",
              "type": "number<double>",
              "nullable": true,
              "description": "Total length of stimulated lateral",
              "format": "double"
            },
            {
              "name": "stages",
              "kind": "optional",
              "type": "integer",
              "nullable": true,
              "description": "Number of stages in the frac job"
            },
            {
              "name": "totalFluid",
              "kind": "optional",
              "type": "number<double>",
              "nullable": true,
              "description": "Total fluid used in the frac job",
              "format": "double"
            },
            {
              "name": "totalProppant",
              "kind": "optional",
              "type": "number<double>",
              "nullable": true,
              "description": "Total proppant used in the frac job",
              "format": "double"
            },
            {
              "name": "perforationCount",
              "kind": "optional",
              "type": "integer",
              "nullable": true,
              "description": "Total perforation count in the frac job"
            },
            {
              "name": "stageSpacing",
              "kind": "optional",
              "type": "number<double>",
              "nullable": true,
              "description": "Stage spacing in the frac job",
              "format": "double"
            }
          ],
          "modelRef": "#/components/schemas/HorizontalFracInput",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "HorizontalFrac[]",
            "schema": [
              {
                "name": "wellXid",
                "kind": "optional",
                "type": "string<uuid>",
                "description": "",
                "format": "uuid"
              },
              {
                "name": "date",
                "kind": "required",
                "type": "string<date-time>",
                "description": "<p>Datetime of the event. DatetimeOffset (with timezone) in ISO 8601 format. Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
                "format": "date-time"
              },
              {
                "name": "averageEffectiveSpacing",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Average distance to offset wells at time of completion",
                "format": "double"
              },
              {
                "name": "minEffectiveSpacing",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Distance to the closest offset well at time of completion",
                "format": "double"
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Completion type (Plug-n-perf, sliding sleeve, etc). It is important to standardize values to enable grouped analysis.</p>"
              },
              {
                "name": "fluidType",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Completion fluid type (X-link Gel, Slickwater, etc). It is important to standardize values to enable grouped analysis.</p>"
              },
              {
                "name": "stimulatedLength",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Total length of stimulated lateral",
                "format": "double"
              },
              {
                "name": "stages",
                "kind": "optional",
                "type": "integer",
                "nullable": true,
                "description": "Number of stages in the frac job"
              },
              {
                "name": "totalFluid",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Total fluid used in the frac job",
                "format": "double"
              },
              {
                "name": "totalProppant",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Total proppant used in the frac job",
                "format": "double"
              },
              {
                "name": "perforationCount",
                "kind": "optional",
                "type": "integer",
                "nullable": true,
                "description": "Total perforation count in the frac job"
              },
              {
                "name": "stageSpacing",
                "kind": "optional",
                "type": "number<double>",
                "nullable": true,
                "description": "Stage spacing in the frac job",
                "format": "double"
              }
            ],
            "modelRef": "#/components/schemas/HorizontalFrac",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "-ZoKN1_UDB-Qciodrc-3M",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://data.onxecta.com/api/production/horizontalfrac \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '[\n     {\n     \"uwi\": \"\",\n     \"date\": \"\"\n     }\n     ]'"
        },
        {
          "id": "HrcSwioJNT3npg0gY8gd5",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify([\n   {\n      \"uwi\": \"\",\n      \"date\": \"\"\n   }\n]);\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://data.onxecta.com/api/production/horizontalfrac\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "XpmO7ameB_CvGlFDWY1U6",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://data.onxecta.com/api/production/horizontalfrac\"\n\npayload = json.dumps([\n   {\n      \"uwi\": \"\",\n      \"date\": \"\"\n   }\n])\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        },
        {
          "id": "rKbcKyiJjZ7uxtpum3JAC",
          "language": "csharp",
          "label": "C#",
          "code": "var options = new RestClientOptions(\"https://data.onxecta.com\")\n{\n   MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"/api/production/horizontalfrac\", Method.Post);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nvar body = @\"[\" + \"\\n\" +\n@\"  {\" + \"\\n\" +\n@\"    \"\"uwi\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"date\"\": \"\"\"\"\" + \"\\n\" +\n@\"  }\" + \"\\n\" +\n@\"]\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        },
        {
          "id": "LnQ8oTPGP6AXv9OomIR7_",
          "language": "java",
          "label": "Java",
          "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n   .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"[\\n  {\\n    \\\"uwi\\\": \\\"\\\",\\n    \\\"date\\\": \\\"\\\"\\n  }\\n]\");\nRequest request = new Request.Builder()\n   .url(\"https://data.onxecta.com/api/production/horizontalfrac\")\n   .method(\"POST\", body)\n   .addHeader(\"accept\", \"application/json\")\n   .addHeader(\"content-type\", \"application/json\")\n   .build();\nResponse response = client.newCall(request).execute();"
        }
      ],
      "selectedLanguageId": "-ZoKN1_UDB-Qciodrc-3M"
    },
    "results": {
      "languages": [
        {
          "id": "m5hCSL5zwnOyoWSYpuUzL",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"wellXid\": \"\",\n    \"date\": \"\",\n    \"averageEffectiveSpacing\": \"\",\n    \"minEffectiveSpacing\": \"\",\n    \"type\": \"\",\n    \"fluidType\": \"\",\n    \"stimulatedLength\": \"\",\n    \"stages\": 0,\n    \"totalFluid\": \"\",\n    \"totalProppant\": \"\",\n    \"perforationCount\": 0,\n    \"stageSpacing\": \"\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "m5hCSL5zwnOyoWSYpuUzL"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}