POST api/batchapi/analysisresult/get?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

GenerateAnalysisLogViewModel
NameDescriptionTypeAdditional information
particle_counter_id

globally unique identifier

None.

batch_id

globally unique identifier

None.

compartment_number

integer

None.

witness_id

globally unique identifier

None.

vet_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "particle_counter_id": "a4c1af62-be74-44c7-a6bc-eb1a12d995d6",
  "batch_id": "fe1ead09-9afa-44da-89ab-d75ceb22a3be",
  "compartment_number": 3,
  "witness_id": "6567c46e-4e74-49a4-9e80-d87ec3614f8f",
  "vet_id": 1
}

application/xml, text/xml

Sample:
<generate_analysis_log xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <batch_id>fe1ead09-9afa-44da-89ab-d75ceb22a3be</batch_id>
  <compartment_number>3</compartment_number>
  <particle_counter_id>a4c1af62-be74-44c7-a6bc-eb1a12d995d6</particle_counter_id>
  <vet_id>1</vet_id>
  <witness_id>6567c46e-4e74-49a4-9e80-d87ec3614f8f</witness_id>
</generate_analysis_log>

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

Response Information

Resource Description

AnalysisLogViewModel
NameDescriptionTypeAdditional information
id

globally unique identifier

None.

number

integer

None.

date

date

None.

compartment_number

integer

None.

witness_id

globally unique identifier

None.

vet_id

integer

None.

hd_03

integer

None.

hd_05

integer

None.

qlt_03

integer

None.

qlt_05

integer

None.

results

Collection of AnalysisResultViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "id": "4106eca8-1f29-4df0-bce1-566b3afdf8f3",
  "number": 2,
  "date": "2026-01-19T09:36:51.6608295+00:00",
  "compartment_number": 4,
  "witness_id": "dea25e01-e254-41b6-8398-72bcdb57d5b2",
  "vet_id": 1,
  "hd_03": 1,
  "hd_05": 1,
  "qlt_03": 1,
  "qlt_05": 1,
  "results": [
    {
      "id": "b43facac-50b8-4c5a-a034-f47579604e21",
      "log_id": "e2487710-d9dc-48a4-8e6d-7b3bdff4abda",
      "analyse_type": 3,
      "line_number": 4,
      "particle_size": 1.1,
      "particle_count": 1
    },
    {
      "id": "b43facac-50b8-4c5a-a034-f47579604e21",
      "log_id": "e2487710-d9dc-48a4-8e6d-7b3bdff4abda",
      "analyse_type": 3,
      "line_number": 4,
      "particle_size": 1.1,
      "particle_count": 1
    }
  ]
}

application/xml, text/xml

Sample:
<analysis_log xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <compartment_number>4</compartment_number>
  <date>2026-01-19T09:36:51.6608295+00:00</date>
  <hd_03>1</hd_03>
  <hd_05>1</hd_05>
  <id>4106eca8-1f29-4df0-bce1-566b3afdf8f3</id>
  <number>2</number>
  <qlt_03>1</qlt_03>
  <qlt_05>1</qlt_05>
  <results>
    <analysis_result>
      <analyse_type>3</analyse_type>
      <id>b43facac-50b8-4c5a-a034-f47579604e21</id>
      <line_number>4</line_number>
      <log_id>e2487710-d9dc-48a4-8e6d-7b3bdff4abda</log_id>
      <particle_count>1</particle_count>
      <particle_size>1.1</particle_size>
    </analysis_result>
    <analysis_result>
      <analyse_type>3</analyse_type>
      <id>b43facac-50b8-4c5a-a034-f47579604e21</id>
      <line_number>4</line_number>
      <log_id>e2487710-d9dc-48a4-8e6d-7b3bdff4abda</log_id>
      <particle_count>1</particle_count>
      <particle_size>1.1</particle_size>
    </analysis_result>
  </results>
  <vet_id>1</vet_id>
  <witness_id>dea25e01-e254-41b6-8398-72bcdb57d5b2</witness_id>
</analysis_log>