Case

Creates one (or multiple identical) new cases

Changed on
post/cases

Request

  • Base URL
    http://localhost:3000/api
  • URL
    http://localhost:3000/api/cases
  • Auth
    none declared

Query parameters

validate_onlyboolean

Whether to validate the case without creating it

num_casesinteger

The number of cases to create

Request body

SGTF'NA' | '0' | '1'

Example request

{
  "location": {
    "country": "GB"
  },
  "travelHistory": {
    "travel": [
      {
        "location": {
          "country": "CR",
          "administrativeAreaLevel1": "Any province in Costa Rica",
          "administrativeAreaLevel2": "Any canton in Costa Rica",
          "administrativeAreaLevel3": "Any district in Costa Rica",
          "place": "Boston Children's Hospital",
          "name": "Lyon, Auvergne-Rhône-Alpes, France"
        }
      }
    ]
  },
  "vaccines": [
    {
      "name": "AstraZeneca",
      "batch": "PV12345"
    }
  ]
}

Response

Created

OR

Example response

{
  "location": {
    "country": "GB"
  },
  "travelHistory": {
    "travel": [
      {
        "location": {
          "country": "CR",
          "administrativeAreaLevel1": "Any province in Costa Rica",
          "administrativeAreaLevel2": "Any canton in Costa Rica",
          "administrativeAreaLevel3": "Any district in Costa Rica",
          "place": "Boston Children's Hospital",
          "name": "Lyon, Auvergne-Rhône-Alpes, France"
        }
      }
    ]
  },
  "vaccines": [
    {
      "name": "AstraZeneca",
      "batch": "PV12345"
    }
  ]
}

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • warning

      removed the request property ////

    • warning

      removed the request property ////

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

      removed the optional property //// from the response with the status