POST api/ChemtestApi/UploadCOC

Request Information

URI Parameters

None.

Body Parameters

RequestModel
NameDescriptionTypeAdditional information
Token

string

Required

ScheduleId

string

None.

AgsFileBase64

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "ScheduleId": "sample string 2",
  "AgsFileBase64": "sample string 3"
}

application/xml, text/xml

Sample:
<RequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Chemtest.EntityModel.Models">
  <AgsFileBase64>sample string 3</AgsFileBase64>
  <ScheduleId>sample string 2</ScheduleId>
  <Token>sample string 1</Token>
</RequestModel>

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 'RequestModel'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
Response

Object

None.

Status

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": {},
  "Status": 2
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Chemtest.EntityModel.Models">
  <Response />
  <Status>2</Status>
</ResponseModel>