POST api/Setting/AddLiningPatch

Request Information

URI Parameters

None.

Body Parameters

LiningPatch
NameDescriptionTypeAdditional information
liningPatch_id

globally unique identifier

None.

lining_id

globally unique identifier

None.

startDate

date

None.

endDate

date

None.

heatProduced

integer

None.

createBy

globally unique identifier

None.

createDate

date

None.

isExpired

boolean

None.

liningPatchNumber

integer

None.

liningPatchName

string

None.

totalMaterialUsed

decimal number

None.

totalProduction

decimal number

None.

kgPerTon

decimal number

None.

inventories

Collection of LiningPatchInventory

None.

Request Formats

application/json, text/json

Sample:
{
  "liningPatch_id": "5746cdaa-c580-456d-a4fd-85577ebea064",
  "lining_id": "451440c2-f475-4b6a-b145-09bf1423e6a2",
  "startDate": "1788985709000",
  "endDate": "1788985709000",
  "heatProduced": 5,
  "createBy": "07975840-5640-4b13-9047-c5d990ea3767",
  "createDate": "1788985709000",
  "isExpired": true,
  "liningPatchNumber": 9,
  "liningPatchName": "sample string 10",
  "totalMaterialUsed": 11.1,
  "totalProduction": 12.1,
  "kgPerTon": 13.1,
  "inventories": [
    {
      "id": "ac889365-ab7d-4892-bbdb-a314c988c8f1",
      "liningPatch_id": "1ae0c944-5dc1-4e7b-ba6f-52ce753e5855",
      "reference_id": "88f732b2-0f30-4ac2-8c30-c3ed8dbb54ae",
      "referenceType": 4,
      "reference": {
        "id": "25684994-a5da-4b91-86d3-974806e497c9",
        "name": "sample string 2",
        "image": "sample string 3"
      },
      "qty": 5.1,
      "unit_id": 6,
      "createBy": "b1249270-c7a9-46e2-b2ca-d428d81e3c1a",
      "createDate": "1788985709000",
      "isActive": true,
      "updateBy": "b132cd7b-4fdc-4b46-b11b-095dd10a52ea",
      "updateDate": "1788985709000",
      "unit": "sample string 10",
      "item": "sample string 11"
    },
    {
      "id": "ac889365-ab7d-4892-bbdb-a314c988c8f1",
      "liningPatch_id": "1ae0c944-5dc1-4e7b-ba6f-52ce753e5855",
      "reference_id": "88f732b2-0f30-4ac2-8c30-c3ed8dbb54ae",
      "referenceType": 4,
      "reference": {
        "id": "25684994-a5da-4b91-86d3-974806e497c9",
        "name": "sample string 2",
        "image": "sample string 3"
      },
      "qty": 5.1,
      "unit_id": 6,
      "createBy": "b1249270-c7a9-46e2-b2ca-d428d81e3c1a",
      "createDate": "1788985709000",
      "isActive": true,
      "updateBy": "b132cd7b-4fdc-4b46-b11b-095dd10a52ea",
      "updateDate": "1788985709000",
      "unit": "sample string 10",
      "item": "sample string 11"
    }
  ]
}

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 'LiningPatch'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
status

boolean

None.

error

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.