{
  "meta": {
    "options": {
      "linkedFile": "/views/dspec.ejs",
      "linkedForm": "frm_dspecsubmit"
    },
    "$_POST": [
      {
        "type": "text",
        "fieldName": "dspecrev",
        "name": "dspecrev"
      },
      {
        "type": "text",
        "fieldName": "dspeceffectivedate",
        "name": "dspeceffectivedate"
      },
      {
        "type": "text",
        "fieldName": "dspecpnid",
        "name": "dspecpnid"
      },
      {
        "type": "text",
        "fieldName": "dspecstatusid",
        "name": "dspecstatusid"
      },
      {
        "type": "text",
        "fieldName": "dspecreasonforchange",
        "name": "dspecreasonforchange"
      },
      {
        "type": "text",
        "fieldName": "dspecvalidation",
        "name": "dspecvalidation"
      },
      {
        "type": "text",
        "fieldName": "dspecnotes",
        "name": "dspecnotes"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "api",
      "module": "api",
      "action": "send",
      "options": {
        "method": "POST",
        "url": "{{$_ENV.API_BASEURL+'designspecs/altin'}}",
        "dataType": "json",
        "data": {
          "id": null,
          "revisionlevel": "{{$_POST.dspecrev}}",
          "partnumber": {
            "id": "{{$_POST.dspecpnid}}",
            "secondaryvendor": {},
            "status": {
              "id": 4
            },
            "partcode": {
              "id": 16
            },
            "replacedby": {},
            "replaces": {},
            "primaryvendor": {}
          },
          "status": {
            "id": "{{$_POST.dspecstatusid}}"
          },
          "effectivedate": "{{$_POST.dspeceffectivedate}}",
          "reasonforchange": "{{$_POST.dspecreasonforchange}}",
          "validation": "{{$_POST.dspecvalidation}}",
          "note": "{{$_POST.dspecnotes}}"
        },
        "schema": [
          {
            "type": "object",
            "name": "data",
            "sub": [
              {
                "type": "text",
                "name": "id"
              },
              {
                "type": "text",
                "name": "revisionlevel"
              },
              {
                "type": "object",
                "name": "partnumber",
                "sub": [
                  {
                    "type": "number",
                    "name": "id"
                  },
                  {
                    "type": "object",
                    "name": "secondaryvendor"
                  },
                  {
                    "type": "object",
                    "name": "status",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "partcode",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "replacedby"
                  },
                  {
                    "type": "object",
                    "name": "replaces"
                  },
                  {
                    "type": "object",
                    "name": "primaryvendor"
                  }
                ]
              },
              {
                "type": "object",
                "name": "status",
                "sub": [
                  {
                    "type": "number",
                    "name": "id"
                  }
                ]
              },
              {
                "type": "text",
                "name": "effectivedate"
              },
              {
                "type": "text",
                "name": "reasonforchange"
              },
              {
                "type": "text",
                "name": "validation"
              },
              {
                "type": "text",
                "name": "note"
              }
            ]
          }
        ]
      },
      "output": true,
      "meta": [
        {
          "type": "object",
          "name": "data",
          "sub": [
            {
              "type": "text",
              "name": "id"
            },
            {
              "type": "text",
              "name": "revisionlevel"
            },
            {
              "type": "object",
              "name": "partnumber",
              "sub": [
                {
                  "type": "number",
                  "name": "id"
                },
                {
                  "type": "object",
                  "name": "secondaryvendor"
                },
                {
                  "type": "object",
                  "name": "status",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "partcode",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "replacedby"
                },
                {
                  "type": "object",
                  "name": "replaces"
                },
                {
                  "type": "object",
                  "name": "primaryvendor"
                }
              ]
            },
            {
              "type": "object",
              "name": "status",
              "sub": [
                {
                  "type": "number",
                  "name": "id"
                }
              ]
            },
            {
              "type": "text",
              "name": "effectivedate"
            },
            {
              "type": "text",
              "name": "reasonforchange"
            },
            {
              "type": "text",
              "name": "validation"
            },
            {
              "type": "text",
              "name": "note"
            }
          ]
        }
      ],
      "outputType": "object"
    }
  }
}