{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/benchling/main/json-schema/benchling-file-update-schema.json",
  "title": "FileUpdate",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benchling-files-api-openapi.yml#/components/schemas/FileUpdate",
  "properties": {
    "customFields": {
      "allOf": [
        {
          "$ref": "#/$defs/CustomFields"
        }
      ],
      "description": "Custom field values to add to the file"
    },
    "errorMessage": {
      "description": "Error message for the file upload",
      "type": "string"
    },
    "folderId": {
      "description": "ID of the folder that the file is moved into",
      "type": "string"
    },
    "uploadStatus": {
      "enum": [
        "SUCCEEDED",
        "FAILED_VALIDATION"
      ],
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "CustomField": {
      "properties": {
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "CustomFields": {
      "additionalProperties": {
        "$ref": "#/$defs/CustomField"
      },
      "type": "object"
    }
  }
}