SampleBase Data Type

Subtypes
Sample
Properties
name data type constraints description
sampleMethod SampleMethod   The method used for this sample.
date VagueDate   The date when sampling occured.
locality Locality required Describes the position of this sample.
survey SurveyBase required The survey to which this sample belongs.
recorder Person   The person who did this sample.
tags array of string  
Properties inherited from BaseUUID
id string  
Properties inherited from Base
createdBy string   The id of the user who created this entity.

This entity is read only and populated by the service. It is ignored when saving entities.

creationDate string   The timestamp of the cration of this entity. The timestamp is in the timezone Europe/Berlin by default.

This entity is read only and populated by the service. It is ignored when saving entities.

links array of Link   A collection of Links related to this entity.

This entity is read only and populated by the service. It is ignored when saving entities.

modifiedBy string   The id of the user who changed this entity last.

This entity is read only and populated by the service. It is ignored when saving entities.

modificationDate string   The timestamp of the last modification on this entity. The timestamp is in the timezone Europe/Berlin by default.

This entity is read only and populated by the service. It is ignored when saving entities.

userAlloewdToEdit boolean required Indicates weather the user who made the request is allowed to edit this entity or not.

This entity is read only and populated by the service. It is ignored when saving entities.

obfuscated boolean required Indicate weather the data is obfuscated

This entity is read only and populated by the service. It is ignored when saving entities.

allowedOperations array of Operation  

Example

{
  "sampleMethod" : "LIGHT_TRAP",
  "date" : {
    "from" : "...",
    "to" : "...",
    "type" : "YEAR"
  },
  "locality" : {
    "position" : {
      "mtb" : { },
      "epsg" : 12345,
      "type" : "SHAPE",
      "posCenterLatitude" : 12345.0,
      "posCenterLongitude" : 12345.0,
      "wkt" : "...",
      "wktEpsg" : 12345
    },
    "blur" : 12345,
    "locationComment" : "...",
    "locality" : "..."
  },
  "survey" : {
    "name" : "...",
    "description" : "...",
    "container" : true,
    "availability" : "EMBARGO",
    "werbeoOriginal" : true,
    "allowDataEntry" : true,
    "allowExport" : true,
    "portal" : {
      "config" : { },
      "name" : "...",
      "url" : "...",
      "id" : 12345,
      "createdBy" : "...",
      "creationDate" : "...",
      "links" : [ { }, { } ],
      "modifiedBy" : "...",
      "modificationDate" : "...",
      "userAlloewdToEdit" : true,
      "obfuscated" : true,
      "allowedOperations" : [ "UPDATE", "READ" ]
    },
    "obfuscationPolicies" : [ {
      "role" : "APPROVED",
      "permission" : "LOCATION_MTBQQ"
    }, {
      "role" : "ANONYMOUS",
      "permission" : "LOCATION_MTBQ"
    } ],
    "obfuscationPoliciesExternal" : [ {
      "role" : "VALIDATOR",
      "permission" : "LOCATION_MTBQQ"
    }, {
      "role" : "APPROVED",
      "permission" : "PERSONS"
    } ],
    "dataReceivingPortals" : [ 12345, 12345 ],
    "tags" : [ "...", "..." ],
    "parent" : { },
    "id" : 12345,
    "createdBy" : "...",
    "creationDate" : "...",
    "links" : [ {
      "href" : "...",
      "rel" : "..."
    }, {
      "href" : "...",
      "rel" : "..."
    } ],
    "modifiedBy" : "...",
    "modificationDate" : "...",
    "userAlloewdToEdit" : true,
    "obfuscated" : true,
    "allowedOperations" : [ "DELETE", "UPDATE" ]
  },
  "recorder" : {
    "firstName" : "...",
    "lastName" : "...",
    "externalKey" : "...",
    "email" : "...",
    "id" : 12345,
    "createdBy" : "...",
    "creationDate" : "...",
    "links" : [ {
      "href" : "...",
      "rel" : "..."
    }, {
      "href" : "...",
      "rel" : "..."
    } ],
    "modifiedBy" : "...",
    "modificationDate" : "...",
    "userAlloewdToEdit" : true,
    "obfuscated" : true,
    "allowedOperations" : [ "UPDATE", "UPDATE" ]
  },
  "tags" : [ "...", "..." ],
  "id" : "...",
  "createdBy" : "...",
  "creationDate" : "...",
  "links" : [ {
    "href" : "...",
    "rel" : "..."
  }, {
    "href" : "...",
    "rel" : "..."
  } ],
  "modifiedBy" : "...",
  "modificationDate" : "...",
  "userAlloewdToEdit" : true,
  "obfuscated" : true,
  "allowedOperations" : [ "UPDATE", "CREATE" ]
}