---
title: Bulk Add / Update Production Method Data
slug: bulk-add-update-production-method-data
docTags: 
createdAt: 2026-08-14T21:38:37.091Z
---

{
  "id": "cjX0Oz70ONf0vhodFiKAS",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://data.onxecta.com/api/production/production-method",
    "servers": [
      {
        "url": "https://data.onxecta.com/api/production/production-method",
        "description": "AWS Cloud API Endpoint"
      },
      {
        "url": "http://localhost/api/production/production-method",
        "description": "Local Testing API Endpoint"
      }
    ],
    "name": "Bulk Add / Update Production Method 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": "ProductionMethodInput[]",
          "schema": [
            {
              "name": "sourceId",
              "kind": "required",
              "type": "string",
              "nullable": false,
              "description": "SourceId of the production method to enable upsert functionality",
              "maxLength": 100
            },
            {
              "name": "sourceWellId",
              "kind": "required",
              "type": "string",
              "nullable": false,
              "description": "Source ID for Well",
              "maxLength": 100
            },
            {
              "name": "liftType",
              "kind": "required",
              "type": "string",
              "description": "<p>Current lift type of the well: NATURAL_FLOW, GAS_LIFT, ROD_PUMP, ESP, PLUNGER_LIFT, PLUNGER_ASSISTED_GAS_LIFT, GAS_ASSISTED_PLUNGER_LIFT, ANNULAR_NATURAL_FLOW, ANNULAR_GAS_LIFT, PCP, DUAL_NATURAL_FLOW</p>",
              "default": "NATURAL_FLOW",
              "modelRef": "#/components/schemas/LiftType",
              "customType": "LiftType",
              "schema": []
            },
            {
              "name": "startDate",
              "kind": "required",
              "type": "string<date-time>",
              "nullable": false,
              "description": "<p>Datetime offset (with timezone) in ISO 8601 format Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
              "format": "date-time"
            },
            {
              "name": "endDate",
              "kind": "optional",
              "type": "string<date-time>",
              "nullable": true,
              "description": "<p>Datetime offset (with timezone) in ISO 8601 format Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
              "format": "date-time"
            }
          ],
          "modelRef": "#/components/schemas/ProductionMethodInput",
          "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": "ProductionMethod[]",
            "schema": [
              {
                "name": "xid",
                "kind": "optional",
                "type": "string<uuid>",
                "description": "",
                "format": "uuid"
              },
              {
                "name": "sourceId",
                "kind": "optional",
                "type": "string",
                "nullable": false,
                "description": "SourceId of the production method to enable upsert functionality",
                "maxLength": 100
              },
              {
                "name": "sourceWellId",
                "kind": "optional",
                "type": "string",
                "nullable": false,
                "description": "Source ID for Well",
                "maxLength": 100
              },
              {
                "name": "liftType",
                "kind": "optional",
                "type": "string",
                "description": "<p>Current lift type of the well: NATURAL_FLOW, GAS_LIFT, ROD_PUMP, ESP, PLUNGER_LIFT, PLUNGER_ASSISTED_GAS_LIFT, GAS_ASSISTED_PLUNGER_LIFT, ANNULAR_NATURAL_FLOW, ANNULAR_GAS_LIFT, PCP, DUAL_NATURAL_FLOW</p>",
                "default": "NATURAL_FLOW",
                "modelRef": "#/components/schemas/LiftType",
                "customType": "LiftType",
                "schema": []
              },
              {
                "name": "startDate",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": false,
                "description": "<p>Datetime offset (with timezone) in ISO 8601 format Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
                "format": "date-time"
              },
              {
                "name": "endDate",
                "kind": "optional",
                "type": "string<date-time>",
                "nullable": true,
                "description": "<p>Datetime offset (with timezone) in ISO 8601 format Example: 2022-09-27T16:28</p><div></div>+0000<p></p>",
                "format": "date-time"
              }
            ],
            "modelRef": "#/components/schemas/ProductionMethod",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "LyYLdzFKoGqwsjx42NNKo",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://data.onxecta.com/api/production/production-method \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '[\n     {\n     \"sourceId\": \"\",\n     \"sourceWellId\": \"\",\n     \"liftType\": \"NATURAL_FLOW\",\n     \"startDate\": \"\"\n     }\n     ]'"
        },
        {
          "id": "vTeUGFXRbrRz5oL6wrMUU",
          "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      \"sourceId\": \"\",\n      \"sourceWellId\": \"\",\n      \"liftType\": \"NATURAL_FLOW\",\n      \"startDate\": \"\"\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/production-method\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "O42JhBKyEkw3VOqASb2zr",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://data.onxecta.com/api/production/production-method\"\n\npayload = json.dumps([\n   {\n      \"sourceId\": \"\",\n      \"sourceWellId\": \"\",\n      \"liftType\": \"NATURAL_FLOW\",\n      \"startDate\": \"\"\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": "kHNbYi5wEIEonkIcsJB1z",
          "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/production-method\", Method.Post);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nvar body = @\"[\" + \"\\n\" +\n@\"  {\" + \"\\n\" +\n@\"    \"\"sourceId\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"sourceWellId\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"liftType\"\": \"\"NATURAL_FLOW\"\",\" + \"\\n\" +\n@\"    \"\"startDate\"\": \"\"\"\"\" + \"\\n\" +\n@\"  }\" + \"\\n\" +\n@\"]\";\nrequest.AddStringBody(body, DataFormat.Json);\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        },
        {
          "id": "9t6k70imSLbItt3qvA9MQ",
          "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    \\\"sourceId\\\": \\\"\\\",\\n    \\\"sourceWellId\\\": \\\"\\\",\\n    \\\"liftType\\\": \\\"NATURAL_FLOW\\\",\\n    \\\"startDate\\\": \\\"\\\"\\n  }\\n]\");\nRequest request = new Request.Builder()\n   .url(\"https://data.onxecta.com/api/production/production-method\")\n   .method(\"POST\", body)\n   .addHeader(\"accept\", \"application/json\")\n   .addHeader(\"content-type\", \"application/json\")\n   .build();\nResponse response = client.newCall(request).execute();"
        }
      ],
      "selectedLanguageId": "LyYLdzFKoGqwsjx42NNKo"
    },
    "results": {
      "languages": [
        {
          "id": "yVPvSfzj8bvP5GiBP7MUP",
          "language": "200",
          "code": "// OK\n[\n  {\n    \"xid\": \"\",\n    \"sourceId\": \"\",\n    \"sourceWellId\": \"\",\n    \"liftType\": \"\",\n    \"startDate\": \"\",\n    \"endDate\": \"\"\n  }\n]"
        }
      ],
      "selectedLanguageId": "yVPvSfzj8bvP5GiBP7MUP"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}