{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/centaur-labs/json-schema/centaur-labs-create-project-params-schema.json",
  "title": "CreateProjectParams",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/centaur-labs-add-and-manage-projects-api-openapi.yml#/components/schemas/CreateProjectParams",
  "properties": {
    "organization_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Organization Id",
      "description": "Organization ID",
      "default": 1
    },
    "name": {
      "type": "string",
      "maxLength": 60,
      "minLength": 1,
      "title": "Name",
      "description": "The project's title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "The project's description"
    },
    "copy_files": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Copy Files",
      "description": "Whether to copy files from the source bucket into Centaur's AWS bucket"
    },
    "content_type": {
      "$ref": "#/$defs/ContentType",
      "description": "The content type of the project",
      "default": "image"
    },
    "contains_image_series": {
      "type": "boolean",
      "title": "Contains Image Series",
      "description": "Whether the project contains image data belonging to discrete ordered groupings",
      "default": false
    },
    "views": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 20,
            "minLength": 1
          },
          "type": "array",
          "maxLength": 10,
          "minLength": 1,
          "unique_items": true
        },
        {
          "type": "null"
        }
      ],
      "title": "Views",
      "description": "All view names that should be associated with the project"
    }
  },
  "type": "object",
  "required": [
    "name"
  ],
  "$defs": {
    "ContentType": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "audio",
        "text",
        "html",
        "dicom",
        "pdf"
      ],
      "title": "ContentType"
    }
  }
}