Skip to content

FileProblemDto

Endpoints · All schemas

FieldRequiredDescription
assetIdYesThe photo or video
canActYesThe caller may undo it, keep it, look in a folder for it or remove it: its owner only
categoryYesSee definition below
fixStateYesHow the fixes left it. Fixed for you: repaired, part-saved, found-again, restored. Needs you: missing, waiting-phone, cant-repair, couldnt-check, or null when no fix has looked at it yet. Left as they are: left-as-is.
idYesThe problem
lineYesThe step its one-line story is told from: the newest, apart from the damaged file kept beside a repair. Null while its history is empty.
originalFileNameYesThe name of its file
ownerIdYesWhose library it is in
ownerNameYesThe name of the account whose library it is in
partSavedYesA repair saved only part of the picture
pictureAllowedYesThe caller may see its picture: false on another account’s file
stepsYesIts history, oldest first
updatedAtYesWhen it last changed

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.

Field definitions: MediaHealthCategory, FileProblemLineDto, FileStepDto

{
  "properties": {
    "assetId": {
      "description": "The photo or video",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "type": "string"
    },
    "canAct": {
      "description": "The caller may undo it, keep it, look in a folder for it or remove it: its owner only",
      "type": "boolean"
    },
    "category": {
      "$ref": "#/components/schemas/MediaHealthCategory"
    },
    "fixState": {
      "description": "How the fixes left it. Fixed for you: repaired, part-saved, found-again, restored. Needs you: missing, waiting-phone, cant-repair, couldnt-check, or null when no fix has looked at it yet. Left as they are: left-as-is.",
      "nullable": true,
      "type": "string"
    },
    "id": {
      "description": "The problem",
      "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"
    },
    "line": {
      "allOf": [
        {
          "$ref": "#/components/schemas/FileProblemLineDto"
        }
      ],
      "description": "The step its one-line story is told from: the newest, apart from the damaged file kept beside a repair. Null while its history is empty.",
      "nullable": true
    },
    "originalFileName": {
      "description": "The name of its file",
      "type": "string"
    },
    "ownerId": {
      "description": "Whose library it is in",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "type": "string"
    },
    "ownerName": {
      "description": "The name of the account whose library it is in",
      "type": "string"
    },
    "partSaved": {
      "description": "A repair saved only part of the picture",
      "type": "boolean"
    },
    "pictureAllowed": {
      "description": "The caller may see its picture: false on another account’s file",
      "type": "boolean"
    },
    "steps": {
      "description": "Its history, oldest first",
      "items": {
        "$ref": "#/components/schemas/FileStepDto"
      },
      "type": "array"
    },
    "updatedAt": {
      "description": "When it last changed",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "assetId",
    "canAct",
    "category",
    "fixState",
    "id",
    "line",
    "originalFileName",
    "ownerId",
    "ownerName",
    "partSaved",
    "pictureAllowed",
    "steps",
    "updatedAt"
  ],
  "type": "object"
}