{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-update-file-request-schema.json",
  "title": "UpdateFileRequest",
  "description": "Body accepted by the update endpoint.\n\nAbsent fields are left untouched. `folder_id` and `description` accept an\nexplicit `null` to clear them — `Patch` is what carries that third state\nwithout an `Option<Option<T>>`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-files-api-openapi.yml#/components/schemas/UpdateFileRequest",
  "type": "object",
  "properties": {
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "`null` clears the caption; absent leaves it alone."
    },
    "filename": {
      "type": [
        "string",
        "null"
      ],
      "description": "New name."
    },
    "folder_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "`null` moves the file to the root; absent leaves it in place."
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Replacement tag set."
    },
    "visibility": {
      "type": [
        "string",
        "null"
      ],
      "description": "`private` or `link`."
    }
  }
}