POST api/Setting/AddLining

Request Information

URI Parameters

None.

Body Parameters

Lining
NameDescriptionTypeAdditional information
lining_id

globally unique identifier

None.

furnace_id

globally unique identifier

None.

startDate

date

None.

endDate

date

None.

heatProduced

integer

None.

patchHeatProduced

integer

None.

overallHeatProduced

integer

None.

totalPatches

integer

None.

createBy

globally unique identifier

None.

creator

Reference

None.

createDate

date

None.

isActive

boolean

None.

updateBy

globally unique identifier

None.

updateDate

date

None.

isExpired

boolean

None.

totalProduction

decimal number

None.

patchTotalProduction

decimal number

None.

overallTotalProduction

decimal number

None.

totalMaterialUsed

decimal number

None.

totalPatchMaterialUsed

decimal number

None.

overallMaterialUsed

decimal number

None.

currentLiningPatch_id

globally unique identifier

None.

furnaceLiningNumber

integer

None.

furnaceLiningName

string

None.

curcibleFurnace

string

None.

kgPerTon

decimal number

None.

inventories

Collection of LiningInventory

None.

patches

Collection of LiningPatch

None.

Request Formats

application/json, text/json

Sample:
{
  "lining_id": "314f1080-cfa5-4f5c-ab59-e1dd2cb30643",
  "furnace_id": "1e92ac16-c0b1-4e5b-875c-0ef8fd1114a9",
  "startDate": "1788973510000",
  "endDate": "1788973510000",
  "heatProduced": 5,
  "patchHeatProduced": 6,
  "overallHeatProduced": 7,
  "totalPatches": 8,
  "createBy": "24a29cb4-85d6-46aa-baf5-0826cdef0278",
  "creator": {
    "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
    "name": "sample string 2",
    "image": "sample string 3"
  },
  "createDate": "1788973510000",
  "isActive": true,
  "updateBy": "798c1187-c47c-4b0d-beec-f7341cfb5853",
  "updateDate": "1788973510000",
  "isExpired": true,
  "totalProduction": 15.1,
  "patchTotalProduction": 16.1,
  "overallTotalProduction": 17.1,
  "totalMaterialUsed": 18.1,
  "totalPatchMaterialUsed": 19.1,
  "overallMaterialUsed": 20.1,
  "currentLiningPatch_id": "17d7c901-39ad-4e82-b8fe-9a84724c1884",
  "furnaceLiningNumber": 22,
  "furnaceLiningName": "sample string 23",
  "curcibleFurnace": "sample string 24",
  "kgPerTon": 25.1,
  "inventories": [
    {
      "id": "3d78c0cc-fb4f-4c8e-a793-f3243115b97b",
      "lining_id": "7e93d737-6810-404b-8d12-880bc31f5f4c",
      "reference_id": "a2a2a4b7-df64-4d68-a6dc-d030a2100ffb",
      "referenceType": 4,
      "reference": {
        "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
        "name": "sample string 2",
        "image": "sample string 3"
      },
      "qty": 5.1,
      "unit_id": 6,
      "createBy": "81d5ce44-130c-4bff-9844-8cf59115adfe",
      "createDate": "1788973510000",
      "isActive": true,
      "updateBy": "de8cf22a-4d64-4ec5-9ebf-cf60185a8a59",
      "updateDate": "1788973510000",
      "unit": "sample string 10",
      "item": "sample string 11"
    },
    {
      "id": "3d78c0cc-fb4f-4c8e-a793-f3243115b97b",
      "lining_id": "7e93d737-6810-404b-8d12-880bc31f5f4c",
      "reference_id": "a2a2a4b7-df64-4d68-a6dc-d030a2100ffb",
      "referenceType": 4,
      "reference": {
        "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
        "name": "sample string 2",
        "image": "sample string 3"
      },
      "qty": 5.1,
      "unit_id": 6,
      "createBy": "81d5ce44-130c-4bff-9844-8cf59115adfe",
      "createDate": "1788973510000",
      "isActive": true,
      "updateBy": "de8cf22a-4d64-4ec5-9ebf-cf60185a8a59",
      "updateDate": "1788973510000",
      "unit": "sample string 10",
      "item": "sample string 11"
    }
  ],
  "patches": [
    {
      "liningPatch_id": "49f7328c-2b00-416e-b10e-11f4d4042cd9",
      "lining_id": "76b4eb05-7877-4547-b427-3fe2fbfde0f8",
      "startDate": "1788973510000",
      "endDate": "1788973510000",
      "heatProduced": 5,
      "createBy": "fa5cd439-cd5a-424d-97d0-8370713017df",
      "createDate": "1788973510000",
      "isExpired": true,
      "liningPatchNumber": 9,
      "liningPatchName": "sample string 10",
      "totalMaterialUsed": 11.1,
      "totalProduction": 12.1,
      "kgPerTon": 13.1,
      "inventories": [
        {
          "id": "0c76a807-b8fe-4789-8299-921f1bc56efb",
          "liningPatch_id": "b98111c0-9e5e-4731-895c-f91b0712b112",
          "reference_id": "d742e165-b576-4984-999e-ddb550b6b3a3",
          "referenceType": 4,
          "reference": {
            "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
            "name": "sample string 2",
            "image": "sample string 3"
          },
          "qty": 5.1,
          "unit_id": 6,
          "createBy": "8d6542ff-7441-458a-be9f-58d41ab6f655",
          "createDate": "1788973510000",
          "isActive": true,
          "updateBy": "8a1b4392-9ee6-4fac-8da8-6045a53ad1ce",
          "updateDate": "1788973510000",
          "unit": "sample string 10",
          "item": "sample string 11"
        },
        {
          "id": "0c76a807-b8fe-4789-8299-921f1bc56efb",
          "liningPatch_id": "b98111c0-9e5e-4731-895c-f91b0712b112",
          "reference_id": "d742e165-b576-4984-999e-ddb550b6b3a3",
          "referenceType": 4,
          "reference": {
            "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
            "name": "sample string 2",
            "image": "sample string 3"
          },
          "qty": 5.1,
          "unit_id": 6,
          "createBy": "8d6542ff-7441-458a-be9f-58d41ab6f655",
          "createDate": "1788973510000",
          "isActive": true,
          "updateBy": "8a1b4392-9ee6-4fac-8da8-6045a53ad1ce",
          "updateDate": "1788973510000",
          "unit": "sample string 10",
          "item": "sample string 11"
        }
      ]
    },
    {
      "liningPatch_id": "49f7328c-2b00-416e-b10e-11f4d4042cd9",
      "lining_id": "76b4eb05-7877-4547-b427-3fe2fbfde0f8",
      "startDate": "1788973510000",
      "endDate": "1788973510000",
      "heatProduced": 5,
      "createBy": "fa5cd439-cd5a-424d-97d0-8370713017df",
      "createDate": "1788973510000",
      "isExpired": true,
      "liningPatchNumber": 9,
      "liningPatchName": "sample string 10",
      "totalMaterialUsed": 11.1,
      "totalProduction": 12.1,
      "kgPerTon": 13.1,
      "inventories": [
        {
          "id": "0c76a807-b8fe-4789-8299-921f1bc56efb",
          "liningPatch_id": "b98111c0-9e5e-4731-895c-f91b0712b112",
          "reference_id": "d742e165-b576-4984-999e-ddb550b6b3a3",
          "referenceType": 4,
          "reference": {
            "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
            "name": "sample string 2",
            "image": "sample string 3"
          },
          "qty": 5.1,
          "unit_id": 6,
          "createBy": "8d6542ff-7441-458a-be9f-58d41ab6f655",
          "createDate": "1788973510000",
          "isActive": true,
          "updateBy": "8a1b4392-9ee6-4fac-8da8-6045a53ad1ce",
          "updateDate": "1788973510000",
          "unit": "sample string 10",
          "item": "sample string 11"
        },
        {
          "id": "0c76a807-b8fe-4789-8299-921f1bc56efb",
          "liningPatch_id": "b98111c0-9e5e-4731-895c-f91b0712b112",
          "reference_id": "d742e165-b576-4984-999e-ddb550b6b3a3",
          "referenceType": 4,
          "reference": {
            "id": "66b8a3da-fba2-4115-baa9-e2b086ba4b5f",
            "name": "sample string 2",
            "image": "sample string 3"
          },
          "qty": 5.1,
          "unit_id": 6,
          "createBy": "8d6542ff-7441-458a-be9f-58d41ab6f655",
          "createDate": "1788973510000",
          "isActive": true,
          "updateBy": "8a1b4392-9ee6-4fac-8da8-6045a53ad1ce",
          "updateDate": "1788973510000",
          "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 'Lining'.

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.