POST api/Production/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DTOProduction
NameDescriptionTypeAdditional information
EntryType

string

None.

ScreenNo

integer

None.

ProductionType

integer

None.

EntryDate

string

None.

Operator_id

integer

None.

DivisioNo

integer

None.

CreatedBy

string

None.

DTOProductionDetail

Collection of DTOProductionDetail

None.

DTOBatchDetailProduction

Collection of DTOBatchDetailProduction

None.

DTOBatchDetail

Collection of DTOBatchDetail

None.

DTORejection

Collection of DTORejection

None.

DTORework

Collection of DTORework

None.

DTOIdleDetailPro

Collection of DTOIdleDetailPro

None.

Request Formats

application/json, text/json

Sample:
{
  "EntryType": "sample string 1",
  "ScreenNo": 2,
  "ProductionType": 3,
  "EntryDate": "sample string 4",
  "Operator_id": 5,
  "DivisioNo": 6,
  "CreatedBy": "sample string 7",
  "DTOProductionDetail": [
    {
      "rsht_id": 1,
      "rsht_name": "sample string 2",
      "start_seq": 3,
      "start_process_id": 4,
      "start_time": "2026-01-11T04:23:43.200172+05:30",
      "end_time": "2026-01-11T04:23:43.200172+05:30",
      "mac_id": 7,
      "shift_id": 8,
      "process_qty": 9.0,
      "accept_qty": 10.0,
      "reject_qty": 11.0,
      "rework_qty": 12.0
    },
    {
      "rsht_id": 1,
      "rsht_name": "sample string 2",
      "start_seq": 3,
      "start_process_id": 4,
      "start_time": "2026-01-11T04:23:43.200172+05:30",
      "end_time": "2026-01-11T04:23:43.200172+05:30",
      "mac_id": 7,
      "shift_id": 8,
      "process_qty": 9.0,
      "accept_qty": 10.0,
      "reject_qty": 11.0,
      "rework_qty": 12.0
    }
  ],
  "DTOBatchDetailProduction": [
    {},
    {}
  ],
  "DTOBatchDetail": [
    {
      "BatchNo": "sample string 1",
      "ItemID": 2,
      "MnfDate": "sample string 3",
      "ExpDate": "sample string 4"
    },
    {
      "BatchNo": "sample string 1",
      "ItemID": 2,
      "MnfDate": "sample string 3",
      "ExpDate": "sample string 4"
    }
  ],
  "DTORejection": [
    {
      "rej_id": 1,
      "rej_name": "sample string 2",
      "rej_qty": 3.0
    },
    {
      "rej_id": 1,
      "rej_name": "sample string 2",
      "rej_qty": 3.0
    }
  ],
  "DTORework": [
    {
      "rew_id": 1,
      "rew_name": "sample string 2",
      "rew_qty": 3.0
    },
    {
      "rew_id": 1,
      "rew_name": "sample string 2",
      "rew_qty": 3.0
    }
  ],
  "DTOIdleDetailPro": [
    {
      "idle_id": 1,
      "idle_name": "sample string 2",
      "start_time": "2026-01-11T04:23:43.200172+05:30",
      "end_time": "2026-01-11T04:23:43.200172+05:30"
    },
    {
      "idle_id": 1,
      "idle_name": "sample string 2",
      "start_time": "2026-01-11T04:23:43.200172+05:30",
      "end_time": "2026-01-11T04:23:43.200172+05:30"
    }
  ]
}

application/xml, text/xml

Sample:
<DTOProduction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers">
  <CreatedBy>sample string 7</CreatedBy>
  <DTOBatchDetail>
    <DTOBatchDetail>
      <BatchNo>sample string 1</BatchNo>
      <ExpDate>sample string 4</ExpDate>
      <ItemID>2</ItemID>
      <MnfDate>sample string 3</MnfDate>
    </DTOBatchDetail>
    <DTOBatchDetail>
      <BatchNo>sample string 1</BatchNo>
      <ExpDate>sample string 4</ExpDate>
      <ItemID>2</ItemID>
      <MnfDate>sample string 3</MnfDate>
    </DTOBatchDetail>
  </DTOBatchDetail>
  <DTOBatchDetailProduction>
    <DTOBatchDetailProduction />
    <DTOBatchDetailProduction />
  </DTOBatchDetailProduction>
  <DTOIdleDetailPro>
    <DTOIdleDetailPro>
      <end_time>2026-01-11T04:23:43.200172+05:30</end_time>
      <idle_id>1</idle_id>
      <idle_name>sample string 2</idle_name>
      <start_time>2026-01-11T04:23:43.200172+05:30</start_time>
    </DTOIdleDetailPro>
    <DTOIdleDetailPro>
      <end_time>2026-01-11T04:23:43.200172+05:30</end_time>
      <idle_id>1</idle_id>
      <idle_name>sample string 2</idle_name>
      <start_time>2026-01-11T04:23:43.200172+05:30</start_time>
    </DTOIdleDetailPro>
  </DTOIdleDetailPro>
  <DTOProductionDetail>
    <DTOProductionDetail>
      <accept_qty>10</accept_qty>
      <end_time>2026-01-11T04:23:43.200172+05:30</end_time>
      <mac_id>7</mac_id>
      <process_qty>9</process_qty>
      <reject_qty>11</reject_qty>
      <rework_qty>12</rework_qty>
      <rsht_id>1</rsht_id>
      <rsht_name>sample string 2</rsht_name>
      <shift_id>8</shift_id>
      <start_process_id>4</start_process_id>
      <start_seq>3</start_seq>
      <start_time>2026-01-11T04:23:43.200172+05:30</start_time>
    </DTOProductionDetail>
    <DTOProductionDetail>
      <accept_qty>10</accept_qty>
      <end_time>2026-01-11T04:23:43.200172+05:30</end_time>
      <mac_id>7</mac_id>
      <process_qty>9</process_qty>
      <reject_qty>11</reject_qty>
      <rework_qty>12</rework_qty>
      <rsht_id>1</rsht_id>
      <rsht_name>sample string 2</rsht_name>
      <shift_id>8</shift_id>
      <start_process_id>4</start_process_id>
      <start_seq>3</start_seq>
      <start_time>2026-01-11T04:23:43.200172+05:30</start_time>
    </DTOProductionDetail>
  </DTOProductionDetail>
  <DTORejection>
    <DTORejection>
      <rej_id>1</rej_id>
      <rej_name>sample string 2</rej_name>
      <rej_qty>3</rej_qty>
    </DTORejection>
    <DTORejection>
      <rej_id>1</rej_id>
      <rej_name>sample string 2</rej_name>
      <rej_qty>3</rej_qty>
    </DTORejection>
  </DTORejection>
  <DTORework>
    <DTORework>
      <rew_id>1</rew_id>
      <rew_name>sample string 2</rew_name>
      <rew_qty>3</rew_qty>
    </DTORework>
    <DTORework>
      <rew_id>1</rew_id>
      <rew_name>sample string 2</rew_name>
      <rew_qty>3</rew_qty>
    </DTORework>
  </DTORework>
  <DivisioNo>6</DivisioNo>
  <EntryDate>sample string 4</EntryDate>
  <EntryType>sample string 1</EntryType>
  <Operator_id>5</Operator_id>
  <ProductionType>3</ProductionType>
  <ScreenNo>2</ScreenNo>
</DTOProduction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

rtnMessage
NameDescriptionTypeAdditional information
result

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "result": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<rtnMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers">
  <message>sample string 2</message>
  <result>true</result>
</rtnMessage>