POST api/KGPL/SubmitAssignPart
Request Information
URI Parameters
None.
Body Parameters
KGPLAssignPartMDL| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| JobCardId | integer |
None. |
|
| PartAllotmentData | Collection of KGPLAssignPartDetailsMDL |
None. |
|
| PartAllotmentDataTable | DataTable |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"JobCardId": 2,
"PartAllotmentData": [
{
"PartId": 1,
"Quantity": 2,
"TechnicianId": 3,
"StatusId": 4,
"Remarks": "sample string 5"
},
{
"PartId": 1,
"Quantity": 2,
"TechnicianId": 3,
"StatusId": 4,
"Remarks": "sample string 5"
}
],
"PartAllotmentDataTable": null
}
application/xml, text/xml
Sample:
<KGPLAssignPartMDL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FTSMDLClassLibrary.WebAPIMDL.KGPL">
<JobCardId>2</JobCardId>
<PartAllotmentData>
<KGPLAssignPartDetailsMDL>
<PartId>1</PartId>
<Quantity>2</Quantity>
<Remarks>sample string 5</Remarks>
<StatusId>4</StatusId>
<TechnicianId>3</TechnicianId>
</KGPLAssignPartDetailsMDL>
<KGPLAssignPartDetailsMDL>
<PartId>1</PartId>
<Quantity>2</Quantity>
<Remarks>sample string 5</Remarks>
<StatusId>4</StatusId>
<TechnicianId>3</TechnicianId>
</KGPLAssignPartDetailsMDL>
</PartAllotmentData>
<PartAllotmentDataTable i:nil="true" />
<UserId>1</UserId>
</KGPLAssignPartMDL>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResultOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| Description | string |
None. |
|
| Result | boolean |
None. |
|
| Data | string |
None. |
|
| status | integer |
None. |
|
| TotalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"Description": "sample string 2",
"Result": true,
"Data": "sample string 4",
"status": 5,
"TotalCount": 6
}
application/xml, text/xml
Sample:
<ServiceResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FTSMDLClassLibrary.FTSServices"> <Data>sample string 4</Data> <Description>sample string 2</Description> <Message>sample string 1</Message> <Result>true</Result> <TotalCount>6</TotalCount> <status>5</status> </ServiceResultOfstring>