POST api/Samples/AssignSampleListToTicket

Documentation for 'AssignSampleListToTicket'.

Request Information

Parameters

NameDescriptionAdditional information
samples
Documentation for 'samples'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "sampleUID": "sample string 1",
    "ticketId": 2,
    "errorMsg": "sample string 3"
  },
  {
    "sampleUID": "sample string 1",
    "ticketId": 2,
    "errorMsg": "sample string 3"
  },
  {
    "sampleUID": "sample string 1",
    "ticketId": 2,
    "errorMsg": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWASampleTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BioBancheFEShared.WebApiModels">
  <WASampleTicket>
    <errorMsg>sample string 3</errorMsg>
    <sampleUID>sample string 1</sampleUID>
    <ticketId>2</ticketId>
  </WASampleTicket>
  <WASampleTicket>
    <errorMsg>sample string 3</errorMsg>
    <sampleUID>sample string 1</sampleUID>
    <ticketId>2</ticketId>
  </WASampleTicket>
  <WASampleTicket>
    <errorMsg>sample string 3</errorMsg>
    <sampleUID>sample string 1</sampleUID>
    <ticketId>2</ticketId>
  </WASampleTicket>
</ArrayOfWASampleTicket>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'List`1'.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "sampleUID": "sample string 1",
    "ticketId": 2,
    "errorMsg": "sample string 3"
  },
  {
    "sampleUID": "sample string 1",
    "ticketId": 2,
    "errorMsg": "sample string 3"
  },
  {
    "sampleUID": "sample string 1",
    "ticketId": 2,
    "errorMsg": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWASampleTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BioBancheFEShared.WebApiModels">
  <WASampleTicket>
    <errorMsg>sample string 3</errorMsg>
    <sampleUID>sample string 1</sampleUID>
    <ticketId>2</ticketId>
  </WASampleTicket>
  <WASampleTicket>
    <errorMsg>sample string 3</errorMsg>
    <sampleUID>sample string 1</sampleUID>
    <ticketId>2</ticketId>
  </WASampleTicket>
  <WASampleTicket>
    <errorMsg>sample string 3</errorMsg>
    <sampleUID>sample string 1</sampleUID>
    <ticketId>2</ticketId>
  </WASampleTicket>
</ArrayOfWASampleTicket>