application/json

Body

Lab result as JSON object. Body must include either external or internal order numbers. In the case of internal, lab ID is taken from authorization headers.

  • result string Required

    The lab result.

    Values are POSITIVE, WEAK_POSITIVE, NEGATIVE, INVALID, or IN_PROGRESS.

Responses

  • 200

    Result uploaded successfully

  • 401

    API key invalid or missing

    Hide headers attribute Show headers attribute
  • 404

    no order for external order number found

  • 500

    General error response body

    Hide response attribute Show response attribute object
PUT /results/json
curl \
 -X PUT https://api.labres.dev.healthmetrix.com/v1/results/json \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"result":"POSITIVE"}'
Request example
{
  "result": "POSITIVE"
}
Response examples (500)
{
  "message": "string"
}