POST api/Inspection/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DTOProcessInsHdr
NameDescriptionTypeAdditional information
EntryType

string

None.

EntryDate

date

None.

inspected_id

integer

None.

inspected_by

string

None.

remarks

string

None.

division_no

integer

None.

created_by

string

None.

DTORejectionDetailInspection

Collection of DTORejectionDetailInspection

None.

DTOReworkDetailInspection

Collection of DTOReworkDetailInspection

None.

DTOInspectionDtl

Collection of DTOInspectionDtl

None.

DTOBatchDetailInspection

Collection of DTOBatchDetailInspection

None.

Request Formats

application/json, text/json

Sample:
{
  "EntryType": "sample string 1",
  "EntryDate": "2026-01-11T04:22:54.6371913+05:30",
  "inspected_id": 3,
  "inspected_by": "sample string 4",
  "remarks": "sample string 5",
  "division_no": 6,
  "created_by": "sample string 7",
  "DTORejectionDetailInspection": [
    {
      "rej_id": 1,
      "rej_name": "sample string 2",
      "rej_qty": 3.0
    },
    {
      "rej_id": 1,
      "rej_name": "sample string 2",
      "rej_qty": 3.0
    }
  ],
  "DTOReworkDetailInspection": [
    {
      "rew_id": 1,
      "rew_name": "sample string 2",
      "rew_qty": 3.0
    },
    {
      "rew_id": 1,
      "rew_name": "sample string 2",
      "rew_qty": 3.0
    }
  ],
  "DTOInspectionDtl": [
    {
      "prod_id": 1,
      "start_process_id": 2,
      "end_process_id": 3,
      "ins_qty": 4.0,
      "accept_qty": 5.0,
      "reject_qty": 6.0,
      "rework_qty": 7.0,
      "rm_rate": 8.0,
      "rm_cost": 9.0,
      "process_rate": 10.0,
      "store_receipt": true
    },
    {
      "prod_id": 1,
      "start_process_id": 2,
      "end_process_id": 3,
      "ins_qty": 4.0,
      "accept_qty": 5.0,
      "reject_qty": 6.0,
      "rework_qty": 7.0,
      "rm_rate": 8.0,
      "rm_cost": 9.0,
      "process_rate": 10.0,
      "store_receipt": true
    }
  ],
  "DTOBatchDetailInspection": [
    {
      "item_id": 1,
      "batch_no": "sample string 2",
      "received_qty": 3.0,
      "issued_qty": 4.0,
      "stock_type": 5,
      "ins_required": true,
      "rec_stock_qty": 7.0,
      "iss_stock_qty": 8.0,
      "manuf_date": "2026-01-11T04:22:54.6371913+05:30",
      "exp_date": "2026-01-11T04:22:54.6371913+05:30",
      "store_receipt": true,
      "rsht_id": 12
    },
    {
      "item_id": 1,
      "batch_no": "sample string 2",
      "received_qty": 3.0,
      "issued_qty": 4.0,
      "stock_type": 5,
      "ins_required": true,
      "rec_stock_qty": 7.0,
      "iss_stock_qty": 8.0,
      "manuf_date": "2026-01-11T04:22:54.6371913+05:30",
      "exp_date": "2026-01-11T04:22:54.6371913+05:30",
      "store_receipt": true,
      "rsht_id": 12
    }
  ]
}

application/xml, text/xml

Sample:
<DTOProcessInsHdr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiAndroid.Controllers">
  <DTOBatchDetailInspection>
    <DTOBatchDetailInspection>
      <batch_no>sample string 2</batch_no>
      <exp_date>2026-01-11T04:22:54.6371913+05:30</exp_date>
      <ins_required>true</ins_required>
      <iss_stock_qty>8</iss_stock_qty>
      <issued_qty>4</issued_qty>
      <item_id>1</item_id>
      <manuf_date>2026-01-11T04:22:54.6371913+05:30</manuf_date>
      <rec_stock_qty>7</rec_stock_qty>
      <received_qty>3</received_qty>
      <rsht_id>12</rsht_id>
      <stock_type>5</stock_type>
      <store_receipt>true</store_receipt>
    </DTOBatchDetailInspection>
    <DTOBatchDetailInspection>
      <batch_no>sample string 2</batch_no>
      <exp_date>2026-01-11T04:22:54.6371913+05:30</exp_date>
      <ins_required>true</ins_required>
      <iss_stock_qty>8</iss_stock_qty>
      <issued_qty>4</issued_qty>
      <item_id>1</item_id>
      <manuf_date>2026-01-11T04:22:54.6371913+05:30</manuf_date>
      <rec_stock_qty>7</rec_stock_qty>
      <received_qty>3</received_qty>
      <rsht_id>12</rsht_id>
      <stock_type>5</stock_type>
      <store_receipt>true</store_receipt>
    </DTOBatchDetailInspection>
  </DTOBatchDetailInspection>
  <DTOInspectionDtl>
    <DTOInspectionDtl>
      <accept_qty>5</accept_qty>
      <end_process_id>3</end_process_id>
      <ins_qty>4</ins_qty>
      <process_rate>10</process_rate>
      <prod_id>1</prod_id>
      <reject_qty>6</reject_qty>
      <rework_qty>7</rework_qty>
      <rm_cost>9</rm_cost>
      <rm_rate>8</rm_rate>
      <start_process_id>2</start_process_id>
      <store_receipt>true</store_receipt>
    </DTOInspectionDtl>
    <DTOInspectionDtl>
      <accept_qty>5</accept_qty>
      <end_process_id>3</end_process_id>
      <ins_qty>4</ins_qty>
      <process_rate>10</process_rate>
      <prod_id>1</prod_id>
      <reject_qty>6</reject_qty>
      <rework_qty>7</rework_qty>
      <rm_cost>9</rm_cost>
      <rm_rate>8</rm_rate>
      <start_process_id>2</start_process_id>
      <store_receipt>true</store_receipt>
    </DTOInspectionDtl>
  </DTOInspectionDtl>
  <DTORejectionDetailInspection>
    <DTORejectionDetailInspection>
      <rej_id>1</rej_id>
      <rej_name>sample string 2</rej_name>
      <rej_qty>3</rej_qty>
    </DTORejectionDetailInspection>
    <DTORejectionDetailInspection>
      <rej_id>1</rej_id>
      <rej_name>sample string 2</rej_name>
      <rej_qty>3</rej_qty>
    </DTORejectionDetailInspection>
  </DTORejectionDetailInspection>
  <DTOReworkDetailInspection>
    <DTOReworkDetailInspection>
      <rew_id>1</rew_id>
      <rew_name>sample string 2</rew_name>
      <rew_qty>3</rew_qty>
    </DTOReworkDetailInspection>
    <DTOReworkDetailInspection>
      <rew_id>1</rew_id>
      <rew_name>sample string 2</rew_name>
      <rew_qty>3</rew_qty>
    </DTOReworkDetailInspection>
  </DTOReworkDetailInspection>
  <EntryDate>2026-01-11T04:22:54.6371913+05:30</EntryDate>
  <EntryType>sample string 1</EntryType>
  <created_by>sample string 7</created_by>
  <division_no>6</division_no>
  <inspected_by>sample string 4</inspected_by>
  <inspected_id>3</inspected_id>
  <remarks>sample string 5</remarks>
</DTOProcessInsHdr>

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>