Entity Dto Controller

Create or update one or multiple entities.

Changed on

A uuid will be generated for any entity that doesn't have one yet. Posting entities without uuid multiple times will also create them multiple times.

post/environmentsamples/push

Request

  • Base URL
    /sormas-rest (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /sormas-rest/environmentsamples/push
  • Auth
    none declared

Request body

changeDatestring date-time
chlorineResidualsnumber float
creationDatestring date-time
deletedboolean
deletionReason'GDPR' | 'DELETION_REQUEST' | 'CREATED_WITH_NO_LEGAL_REASON' | 'TRANSFERRED_RESPONSIBILITY' | 'DUPLICATE_ENTRIES' | 'OTHER_REASON'
dispatchDatestring date-time
dispatchDetailsstring
dispatchedboolean
fieldSampleIdstring
generalCommentstring
heavyRain'YES' | 'NO' | 'UNKNOWN'
inJurisdictionboolean
labSampleIdstring
laboratoryDetailsstring
otherDeletionReasonstring
otherRequestedPathogenTestsstring
otherSampleMaterialstring
phValueinteger
pseudonymizedboolean
receivalDatestring date-time
receivedboolean
reportDatestring date-time required
sampleDateTimestring date-time required
sampleMaterial'WATER' | 'SOIL' | 'AIR' | 'VECTORS' | 'OTHER' required
sampleTemperatureinteger
sampleVolumenumber float
specimenCondition'ADEQUATE' | 'NOT_ADEQUATE'
turbidityinteger
uuidstring
vectorType'MOSQUITOS' | 'TICKS'
weatherConditionsobject

Response

Array of responses, matching the posted array of entities. Provides an HTML status code for every entity and an optional body (e.g. a string with an error message).

bodyobject
statusCodeinteger

Changes