{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loopgantt-com/json-schema/loopgantt-com-create-project-response-schema.json",
  "title": "CreateProjectResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loopgantt-com-openapi.json#/components/schemas/CreateProjectResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Project ID"
        },
        "name": {
          "type": "string",
          "description": "Project name"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Project description"
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "description": "Project start date"
        },
        "taskCount": {
          "type": "integer",
          "description": "Number of tasks created"
        },
        "dependencyCount": {
          "type": "integer",
          "description": "Number of dependencies created"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL to view the Gantt chart"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL to a preview image (for link previews and sharing)"
        },
        "stages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectStage"
          },
          "description": "The project's workflow stages, in board order (the last one is done)"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "Success message"
        }
      }
    }
  },
  "$defs": {
    "ProjectStage": {
      "type": "object",
      "description": "One workflow stage (board column). A task `status` must be one of these ids.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stage id, e.g. todo, in_progress, done"
        },
        "label": {
          "type": "string",
          "description": "Column name shown in the app"
        }
      }
    }
  }
}