{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendley-com/json-schema/rendley-com-project-update-project-dto-schema.json",
  "title": "project.UpdateProjectDTO",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendley-com-openapi.json#/components/schemas/project.UpdateProjectDTO",
  "properties": {
    "adopt_file_hashes": {
      "description": "AdoptFileHashes lists role=pending uploads to retag role=library in the\nsame request, AFTER the project JSON is saved — the atomic \"save project\n+ adopt pending uploads\" step of the library injection flow. Adoption is\nskipped when the save itself fails.",
      "items": {
        "type": "string"
      },
      "maxItems": 500,
      "type": "array"
    },
    "agent_prompt": {
      "description": "AgentPrompt updates the stored handoff prompt out of band from the\nversion-guarded document save: \"\" clears it (on send), non-empty sets it,\nnil leaves it untouched.",
      "maxLength": 100000,
      "type": "string"
    },
    "agent_skill": {
      "description": "AgentSkill is the handoff prompt's pinned workflow skill, with the same\nset/clear/untouched semantics as AgentPrompt.",
      "maxLength": 64,
      "type": "string"
    },
    "fit_duration": {
      "type": "number"
    },
    "name": {
      "description": "projects.name is VARCHAR(255).",
      "maxLength": 255,
      "type": "string"
    },
    "project_json": {
      "type": "string"
    },
    "template": {
      "allOf": [
        {
          "$ref": "#/$defs/types.TemplateDefinition"
        }
      ],
      "description": "Template replaces the promoted fields, outside the version guard."
    },
    "template_mode": {
      "description": "TemplateMode turns the fields form on or off.",
      "type": "boolean"
    },
    "version": {
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "types.TemplateDefinition": {
      "properties": {
        "fields": {
          "items": {
            "$ref": "#/$defs/types.TemplateFieldDefinition"
          },
          "maxItems": 200,
          "type": "array"
        },
        "version": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "types.TemplateFieldDefinition": {
      "properties": {
        "alias": {
          "description": "Name the author gave the field in the editor.",
          "maxLength": 200,
          "type": "string"
        },
        "clip_id": {
          "description": "Clip a media field was promoted from.",
          "maxLength": 64,
          "type": "string"
        },
        "group": {
          "description": "The clip, media or canvas the field belongs to.",
          "maxLength": 200,
          "type": "string"
        },
        "key": {
          "description": "Name in POST /projects `fields`; the path when unset.",
          "maxLength": 64,
          "type": "string"
        },
        "label": {
          "maxLength": 200,
          "type": "string"
        },
        "path": {
          "description": "Document path, e.g. clips.<id>.text or media.<id>.url.",
          "maxLength": 512,
          "type": "string"
        },
        "property_id": {
          "description": "Editor panel field and right-sidebar step that render it.",
          "maxLength": 128,
          "type": "string"
        },
        "step": {
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    }
  }
}