POST api/MobileApi/SaveCOC2
Request Information
URI Parameters
None.
Body Parameters
MobileCOC2ModelName | Description | Type | Additional information |
---|---|---|---|
COC2 | Collection of MobileSampModel |
Required |
|
UserId | integer |
Required |
|
ClientId | string |
Required |
|
Token | string |
Required |
|
ServerName | string |
Required |
|
LastUpdatedTime | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "COC2": [ { "SampleContainersAndBarcode": [ { "SampNo": 1, "ContainerId": "sample string 1", "ContainerType": "sample string 2", "BarCode": "sample string 3" }, { "SampNo": 1, "ContainerId": "sample string 1", "ContainerType": "sample string 2", "BarCode": "sample string 3" } ], "SAMPNUM": 1, "TimeSampled": 2, "Job": "sample string 3", "SchId": "sample string 4", "AgsType": "sample string 5", "Client": "sample string 6", "ClientsRef": "sample string 7", "Deviating": "sample string 8", "DispDate": "2025-04-04T00:01:29.0478814+01:00", "DispDateStr": "sample string 9", "Disposed": "sample string 10", "Office": "sample string 11", "SampTop": "sample string 12", "SampDepth": "sample string 13", "SampleId": "sample string 14", "SuperType": "sample string 15", "SubType": "sample string 16", "SampBottom": "sample string 17", "SampleRef": "sample string 18", "Type": "sample string 19", "IsSelected": true, "Suites": "sample string 21", "CSuites": "sample string 22", "QSuites": "sample string 23", "Dets": "sample string 24", "PROJECT": "sample string 25", "LOCATION": "sample string 26", "STATUS": "sample string 27", "SAMPDATE": "2025-04-04T00:01:29.0478814+01:00", "OFFICEDATE": "2025-04-04T00:01:29.0478814+01:00", "OFFICEDATEStr": "sample string 28", "SAMPDATEStr": "sample string 29", "Quote": "sample string 30", "COCNO": "sample string 31", "SampleDetsNamelist": { "SuitesNameList": [ { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" }, { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" } ], "DetsNameList": [ { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" }, { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" } ] }, "Containers": "sample string 32", "BarCodes": "sample string 33", "IsCompleted": true }, { "SampleContainersAndBarcode": [ { "SampNo": 1, "ContainerId": "sample string 1", "ContainerType": "sample string 2", "BarCode": "sample string 3" }, { "SampNo": 1, "ContainerId": "sample string 1", "ContainerType": "sample string 2", "BarCode": "sample string 3" } ], "SAMPNUM": 1, "TimeSampled": 2, "Job": "sample string 3", "SchId": "sample string 4", "AgsType": "sample string 5", "Client": "sample string 6", "ClientsRef": "sample string 7", "Deviating": "sample string 8", "DispDate": "2025-04-04T00:01:29.0478814+01:00", "DispDateStr": "sample string 9", "Disposed": "sample string 10", "Office": "sample string 11", "SampTop": "sample string 12", "SampDepth": "sample string 13", "SampleId": "sample string 14", "SuperType": "sample string 15", "SubType": "sample string 16", "SampBottom": "sample string 17", "SampleRef": "sample string 18", "Type": "sample string 19", "IsSelected": true, "Suites": "sample string 21", "CSuites": "sample string 22", "QSuites": "sample string 23", "Dets": "sample string 24", "PROJECT": "sample string 25", "LOCATION": "sample string 26", "STATUS": "sample string 27", "SAMPDATE": "2025-04-04T00:01:29.0478814+01:00", "OFFICEDATE": "2025-04-04T00:01:29.0478814+01:00", "OFFICEDATEStr": "sample string 28", "SAMPDATEStr": "sample string 29", "Quote": "sample string 30", "COCNO": "sample string 31", "SampleDetsNamelist": { "SuitesNameList": [ { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" }, { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" } ], "DetsNameList": [ { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" }, { "Name": "sample string 1", "Id": "sample string 2", "Type": "sample string 3", "SDets": "sample string 4" } ] }, "Containers": "sample string 32", "BarCodes": "sample string 33", "IsCompleted": true } ], "UserId": 1, "ClientId": "sample string 1", "Token": "sample string 2", "ServerName": "sample string 3", "LastUpdatedTime": 4 }
application/xml, text/xml
Sample:
<MobileCOC2Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Chemtest.EntityModel.Models"> <ClientId>sample string 1</ClientId> <LastUpdatedTime>4</LastUpdatedTime> <ServerName>sample string 3</ServerName> <Token>sample string 2</Token> <UserId>1</UserId> <COC2> <MobileSampModel> <AgsType>sample string 5</AgsType> <BarCodes>sample string 33</BarCodes> <COCNO>sample string 31</COCNO> <CSuites>sample string 22</CSuites> <Client>sample string 6</Client> <ClientsRef>sample string 7</ClientsRef> <Containers>sample string 32</Containers> <Dets>sample string 24</Dets> <Deviating>sample string 8</Deviating> <DispDate>2025-04-04T00:01:29.0478814+01:00</DispDate> <DispDateStr>sample string 9</DispDateStr> <Disposed>sample string 10</Disposed> <IsCompleted>true</IsCompleted> <IsSelected>true</IsSelected> <Job>sample string 3</Job> <LOCATION>sample string 26</LOCATION> <OFFICEDATE>2025-04-04T00:01:29.0478814+01:00</OFFICEDATE> <OFFICEDATEStr>sample string 28</OFFICEDATEStr> <Office>sample string 11</Office> <PROJECT>sample string 25</PROJECT> <QSuites>sample string 23</QSuites> <Quote>sample string 30</Quote> <SAMPDATE>2025-04-04T00:01:29.0478814+01:00</SAMPDATE> <SAMPDATEStr>sample string 29</SAMPDATEStr> <SAMPNUM>1</SAMPNUM> <STATUS>sample string 27</STATUS> <SampBottom>sample string 17</SampBottom> <SampDepth>sample string 13</SampDepth> <SampTop>sample string 12</SampTop> <SampleDetsNamelist> <DetsNameList> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> </DetsNameList> <SuitesNameList> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> </SuitesNameList> </SampleDetsNamelist> <SampleId>sample string 14</SampleId> <SampleRef>sample string 18</SampleRef> <SchId>sample string 4</SchId> <SubType>sample string 16</SubType> <Suites>sample string 21</Suites> <SuperType>sample string 15</SuperType> <TimeSampled>2</TimeSampled> <Type>sample string 19</Type> <SampleContainersAndBarcode> <SampContainers> <BarCode>sample string 3</BarCode> <ContainerId>sample string 1</ContainerId> <ContainerType>sample string 2</ContainerType> <SampNo>1</SampNo> </SampContainers> <SampContainers> <BarCode>sample string 3</BarCode> <ContainerId>sample string 1</ContainerId> <ContainerType>sample string 2</ContainerType> <SampNo>1</SampNo> </SampContainers> </SampleContainersAndBarcode> </MobileSampModel> <MobileSampModel> <AgsType>sample string 5</AgsType> <BarCodes>sample string 33</BarCodes> <COCNO>sample string 31</COCNO> <CSuites>sample string 22</CSuites> <Client>sample string 6</Client> <ClientsRef>sample string 7</ClientsRef> <Containers>sample string 32</Containers> <Dets>sample string 24</Dets> <Deviating>sample string 8</Deviating> <DispDate>2025-04-04T00:01:29.0478814+01:00</DispDate> <DispDateStr>sample string 9</DispDateStr> <Disposed>sample string 10</Disposed> <IsCompleted>true</IsCompleted> <IsSelected>true</IsSelected> <Job>sample string 3</Job> <LOCATION>sample string 26</LOCATION> <OFFICEDATE>2025-04-04T00:01:29.0478814+01:00</OFFICEDATE> <OFFICEDATEStr>sample string 28</OFFICEDATEStr> <Office>sample string 11</Office> <PROJECT>sample string 25</PROJECT> <QSuites>sample string 23</QSuites> <Quote>sample string 30</Quote> <SAMPDATE>2025-04-04T00:01:29.0478814+01:00</SAMPDATE> <SAMPDATEStr>sample string 29</SAMPDATEStr> <SAMPNUM>1</SAMPNUM> <STATUS>sample string 27</STATUS> <SampBottom>sample string 17</SampBottom> <SampDepth>sample string 13</SampDepth> <SampTop>sample string 12</SampTop> <SampleDetsNamelist> <DetsNameList> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> </DetsNameList> <SuitesNameList> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> <TempModel> <Id>sample string 2</Id> <Name>sample string 1</Name> <SDets>sample string 4</SDets> <Type>sample string 3</Type> </TempModel> </SuitesNameList> </SampleDetsNamelist> <SampleId>sample string 14</SampleId> <SampleRef>sample string 18</SampleRef> <SchId>sample string 4</SchId> <SubType>sample string 16</SubType> <Suites>sample string 21</Suites> <SuperType>sample string 15</SuperType> <TimeSampled>2</TimeSampled> <Type>sample string 19</Type> <SampleContainersAndBarcode> <SampContainers> <BarCode>sample string 3</BarCode> <ContainerId>sample string 1</ContainerId> <ContainerType>sample string 2</ContainerType> <SampNo>1</SampNo> </SampContainers> <SampContainers> <BarCode>sample string 3</BarCode> <ContainerId>sample string 1</ContainerId> <ContainerType>sample string 2</ContainerType> <SampNo>1</SampNo> </SampContainers> </SampleContainersAndBarcode> </MobileSampModel> </COC2> </MobileCOC2Model>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseOfBooleanName | Description | Type | Additional information |
---|---|---|---|
statusCode | string |
None. |
|
responseData | boolean |
None. |
|
status | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "statusCode": "sample string 1", "responseData": true, "status": "sample string 3" }
application/xml, text/xml
Sample:
<ResponseOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Chemtest.EntityModel.Models"> <responseData>true</responseData> <status>sample string 3</status> <statusCode>sample string 1</statusCode> </ResponseOfboolean>