Skip to content

PetObservationCreateDto

Endpoints · All schemas

FieldRequiredDescription
assetIdYesAsset the pet appears in
boundingBoxX1NoRegion X1, in source pixels
boundingBoxX2NoRegion X2, in source pixels
boundingBoxY1NoRegion Y1, in source pixels
boundingBoxY2NoRegion Y2, in source pixels
expectedChecksumNoChecksum of the original the decision was made on (base64); refused with 409 when it changed
imageHeightNoHeight of the image the region was drawn on
imageWidthNoWidth of the image the region was drawn on

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

{
  "properties": {
    "assetId": {
      "description": "Asset the pet appears in",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
      "type": "string"
    },
    "boundingBoxX1": {
      "description": "Region X1, in source pixels",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "boundingBoxX2": {
      "description": "Region X2, in source pixels",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "boundingBoxY1": {
      "description": "Region Y1, in source pixels",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "boundingBoxY2": {
      "description": "Region Y2, in source pixels",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "expectedChecksum": {
      "description": "Checksum of the original the decision was made on (base64); refused with 409 when it changed",
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    },
    "imageHeight": {
      "description": "Height of the image the region was drawn on",
      "maximum": 9007199254740991,
      "minimum": 1,
      "type": "integer"
    },
    "imageWidth": {
      "description": "Width of the image the region was drawn on",
      "maximum": 9007199254740991,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "assetId"
  ],
  "type": "object"
}