POST api/CodeAssociation/create-view-model

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
viewModel
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Code1Types": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "CodeType": "sample string 1",
        "CodeTypeDesc": "sample string 2"
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "Code2Types": {
    "$id": "4",
    "$values": [
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "Code1LookupValues": {
    "$id": "5",
    "$values": [
      {
        "$id": "6",
        "CodeLovId": 1,
        "CodeType": "sample string 2",
        "Description": "sample string 3",
        "AlternativeDesc": "sample string 4",
        "ShortDesc": "sample string 5",
        "ActiveFlag": true,
        "SequenceNo": 1,
        "SystemCode": "sample string 7",
        "IsStreetAddressFlag": true
      },
      {
        "$ref": "6"
      },
      {
        "$ref": "6"
      }
    ]
  },
  "Code1TypeString": "sample string 1",
  "Code1ValueString": "sample string 2",
  "Code2TypeString": "sample string 3",
  "SelectedLookupCodes": {
    "$id": "7",
    "$values": [
      1,
      1,
      1
    ]
  },
  "AvailableLookupCodeList": {
    "$id": "8",
    "$values": [
      {
        "$id": "9",
        "PK": 1,
        "ActiveFlagNullable": true
      },
      {
        "$ref": "9"
      },
      {
        "$ref": "9"
      }
    ]
  },
  "Entity": {
    "$id": "10",
    "PK": 1
  },
  "Validation": {
    "$id": "11",
    "SuccessOutput": {
      "$id": "12"
    },
    "Success": true,
    "ErrorMessages": null,
    "WarningMessages": {
      "$id": "13",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "InfoMessages": {
      "$id": "14",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "DatabaseErrorMessage": "sample string 3",
    "SuccessMessage": "sample string 4",
    "RelatedKeyId": "sample string 5"
  },
  "PageAccess": {
    "$id": "15",
    "PageCode": "sample string 1",
    "StepAccesses": {
      "$id": "16",
      "$values": [
        {
          "$id": "17",
          "StageCode": "sample string 1",
          "StepCode": "sample string 2"
        },
        {
          "$ref": "17"
        },
        {
          "$ref": "17"
        }
      ]
    },
    "Positions": {
      "$id": "18",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    }
  },
  "UserRole": 0
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CodeAssociationViewModel'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Code1Types": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "CodeType": "sample string 1",
        "CodeTypeDesc": "sample string 2"
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "Code2Types": {
    "$id": "4",
    "$values": [
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "Code1LookupValues": {
    "$id": "5",
    "$values": [
      {
        "$id": "6",
        "CodeLovId": 1,
        "CodeType": "sample string 2",
        "Description": "sample string 3",
        "AlternativeDesc": "sample string 4",
        "ShortDesc": "sample string 5",
        "ActiveFlag": true,
        "SequenceNo": 1,
        "SystemCode": "sample string 7",
        "IsStreetAddressFlag": true
      },
      {
        "$ref": "6"
      },
      {
        "$ref": "6"
      }
    ]
  },
  "Code1TypeString": "sample string 1",
  "Code1ValueString": "sample string 2",
  "Code2TypeString": "sample string 3",
  "SelectedLookupCodes": {
    "$id": "7",
    "$values": [
      1,
      1,
      1
    ]
  },
  "AvailableLookupCodeList": {
    "$id": "8",
    "$values": [
      {
        "$id": "9",
        "PK": 1,
        "ActiveFlagNullable": true
      },
      {
        "$ref": "9"
      },
      {
        "$ref": "9"
      }
    ]
  },
  "Entity": {
    "$id": "10",
    "PK": 1
  },
  "Validation": {
    "$id": "11",
    "SuccessOutput": {
      "$id": "12"
    },
    "Success": true,
    "ErrorMessages": null,
    "WarningMessages": {
      "$id": "13",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "InfoMessages": {
      "$id": "14",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "DatabaseErrorMessage": "sample string 3",
    "SuccessMessage": "sample string 4",
    "RelatedKeyId": "sample string 5"
  },
  "PageAccess": {
    "$id": "15",
    "PageCode": "sample string 1",
    "StepAccesses": {
      "$id": "16",
      "$values": [
        {
          "$id": "17",
          "StageCode": "sample string 1",
          "StepCode": "sample string 2"
        },
        {
          "$ref": "17"
        },
        {
          "$ref": "17"
        }
      ]
    },
    "Positions": {
      "$id": "18",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    }
  },
  "UserRole": 0
}