POST api/ApplicationField?table={table}&userName={userName}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
table

string

Required

userName

string

Required

Body Parameters

ApplicationFieldTableViewModel
NameDescriptionTypeAdditional information
RecordKey

globally unique identifier

None.

Id

integer

None.

Name

string

None.

CreatedById

string

None.

CreatedOn

date

None.

UpdateById

string

None.

UpdateddOn

date

None.

ApplicationFields

Collection of ApplicationFieldViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordKey": "a40a664c-c6aa-4004-8bc6-5e0a2f1a466e",
  "Id": 2,
  "Name": "sample string 3",
  "CreatedById": "sample string 4",
  "CreatedOn": "2020-08-08T00:38:00.582225-04:00",
  "UpdateById": "sample string 6",
  "UpdateddOn": "2020-08-08T00:38:00.582225-04:00",
  "ApplicationFields": [
    {
      "id": 1,
      "name": "sample string 2",
      "fieldId": "sample string 3",
      "sequence": 4,
      "fieldValue": "sample string 5",
      "displayText": "sample string 6",
      "typeId": 7,
      "type": {
        "id": 1,
        "value": "sample string 2",
        "Type": "sample string 3"
      },
      "length": 8,
      "mandatory": true,
      "errorText": "sample string 10",
      "isDeleteAllowed": true,
      "metadata": "sample string 12",
      "isFilter": true
    },
    {
      "id": 1,
      "name": "sample string 2",
      "fieldId": "sample string 3",
      "sequence": 4,
      "fieldValue": "sample string 5",
      "displayText": "sample string 6",
      "typeId": 7,
      "type": {
        "id": 1,
        "value": "sample string 2",
        "Type": "sample string 3"
      },
      "length": 8,
      "mandatory": true,
      "errorText": "sample string 10",
      "isDeleteAllowed": true,
      "metadata": "sample string 12",
      "isFilter": true
    }
  ]
}

application/xml, text/xml

Sample:
<ApplicationFieldTableViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Common">
  <ApplicationFields>
    <ApplicationFieldViewModel>
      <displayText>sample string 6</displayText>
      <errorText>sample string 10</errorText>
      <fieldId>sample string 3</fieldId>
      <fieldValue>sample string 5</fieldValue>
      <id>1</id>
      <isDeleteAllowed>true</isDeleteAllowed>
      <isFilter>true</isFilter>
      <length>8</length>
      <mandatory>true</mandatory>
      <metadata>sample string 12</metadata>
      <name>sample string 2</name>
      <sequence>4</sequence>
      <type>
        <Type>sample string 3</Type>
        <id>1</id>
        <value>sample string 2</value>
      </type>
      <typeId>7</typeId>
    </ApplicationFieldViewModel>
    <ApplicationFieldViewModel>
      <displayText>sample string 6</displayText>
      <errorText>sample string 10</errorText>
      <fieldId>sample string 3</fieldId>
      <fieldValue>sample string 5</fieldValue>
      <id>1</id>
      <isDeleteAllowed>true</isDeleteAllowed>
      <isFilter>true</isFilter>
      <length>8</length>
      <mandatory>true</mandatory>
      <metadata>sample string 12</metadata>
      <name>sample string 2</name>
      <sequence>4</sequence>
      <type>
        <Type>sample string 3</Type>
        <id>1</id>
        <value>sample string 2</value>
      </type>
      <typeId>7</typeId>
    </ApplicationFieldViewModel>
  </ApplicationFields>
  <CreatedById>sample string 4</CreatedById>
  <CreatedOn>2020-08-08T00:38:00.582225-04:00</CreatedOn>
  <Id>2</Id>
  <Name>sample string 3</Name>
  <RecordKey>a40a664c-c6aa-4004-8bc6-5e0a2f1a466e</RecordKey>
  <UpdateById>sample string 6</UpdateById>
  <UpdateddOn>2020-08-08T00:38:00.582225-04:00</UpdateddOn>
</ApplicationFieldTableViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.