{
  "opencollection": "1.0.0",
  "info": {
    "name": "LabVantage LIMS Containers Samples API",
    "version": "8.8.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Samples",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List samples",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.labvantage.example.com/labvantage/rest/v1/samples",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query"
              },
              {
                "name": "sampleType",
                "value": "",
                "type": "query",
                "description": "Sample type code (e.g., \"BLOOD\", \"PLASMA\", \"TABLET\")"
              },
              {
                "name": "projectId",
                "value": "",
                "type": "query"
              },
              {
                "name": "lotNumber",
                "value": "",
                "type": "query"
              },
              {
                "name": "dateFrom",
                "value": "",
                "type": "query"
              },
              {
                "name": "dateTo",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns samples in the LIMS with optional filtering by status, sample type, project, and date range."
        },
        {
          "info": {
            "name": "Login (register) a sample",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.labvantage.example.com/labvantage/rest/v1/samples",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Logs in a new sample to the LIMS, creating a sample record with assigned sample ID, lot number, and initial status. Required before tests can be requested."
        },
        {
          "info": {
            "name": "Get sample details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.labvantage.example.com/labvantage/rest/v1/samples/:sampleId",
            "params": [
              {
                "name": "sampleId",
                "value": "",
                "type": "path",
                "description": "LabVantage sample identifier (SDID)"
              }
            ]
          },
          "docs": "Returns detailed information for a specific sample including all tests, results, and chain of custody information."
        },
        {
          "info": {
            "name": "Update sample",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{instance}.labvantage.example.com/labvantage/rest/v1/samples/:sampleId",
            "params": [
              {
                "name": "sampleId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates mutable fields on a sample record (status, storage location, notes). GxP audit trail is automatically generated."
        }
      ]
    }
  ],
  "bundled": true
}