{
  "meta": {
    "options": {
      "linkedFile": "/views/dspec.ejs",
      "linkedForm": "frm_partsubmit"
    },
    "$_POST": [
      {
        "type": "text",
        "fieldName": "savepc",
        "name": "savepc"
      },
      {
        "type": "text",
        "fieldName": "savept",
        "name": "savept"
      },
      {
        "type": "text",
        "fieldName": "savepnid",
        "name": "savepnid"
      },
      {
        "type": "text",
        "fieldName": "savepn",
        "name": "savepn"
      },
      {
        "type": "text",
        "fieldName": "savepndescription",
        "name": "savepndescription"
      },
      {
        "type": "text",
        "fieldName": "savepncomments",
        "name": "savepncomments"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "api_newPart",
      "module": "api",
      "action": "send",
      "options": {
        "url": "{{$_ENV.API_BASEURL+'partnumbers/alt'}}",
        "method": "POST",
        "dataType": "json",
        "data": {
          "number": "{{$_POST.savepn}}",
          "statusid": "1",
          "description": "{{$_POST.savepndescription}}",
          "comments": "{{$_POST.savepncomments}}",
          "id": null,
          "partcodeid": "{{$_POST.savepc}}",
          "parttypeid": "{{$_POST.savept}}"
        },
        "schema": [
          {
            "type": "object",
            "name": "data",
            "sub": [
              {
                "type": "number",
                "name": "id"
              },
              {
                "type": "text",
                "name": "number"
              },
              {
                "type": "text",
                "name": "description"
              },
              {
                "type": "text",
                "name": "comments"
              }
            ]
          },
          {
            "type": "object",
            "name": "headers",
            "sub": [
              {
                "type": "text",
                "name": "connection"
              },
              {
                "type": "text",
                "name": "content-length"
              },
              {
                "type": "text",
                "name": "content-type"
              },
              {
                "type": "text",
                "name": "date"
              }
            ]
          }
        ]
      },
      "output": true,
      "meta": [
        {
          "type": "object",
          "name": "data",
          "sub": [
            {
              "type": "number",
              "name": "id"
            },
            {
              "type": "text",
              "name": "number"
            },
            {
              "type": "text",
              "name": "description"
            },
            {
              "type": "text",
              "name": "comments"
            }
          ]
        },
        {
          "type": "object",
          "name": "headers",
          "sub": [
            {
              "type": "text",
              "name": "connection"
            },
            {
              "type": "text",
              "name": "content-length"
            },
            {
              "type": "text",
              "name": "content-type"
            },
            {
              "type": "text",
              "name": "date"
            }
          ]
        }
      ],
      "outputType": "object"
    }
  }
}