{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runn/json-schema/runn-project-phase-schema.json",
  "title": "Project Phase",
  "description": "Project phases divide your project into smaller sections so you can group similar tasks and assignments together.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runn-phases-api-openapi.yml#/components/schemas/ProjectPhase",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the phase",
      "type": "number"
    },
    "name": {
      "description": "The name of the project phase",
      "type": "string"
    },
    "color": {
      "description": "Color of the project phase (hex code)",
      "type": "string"
    },
    "startDate": {
      "type": "string",
      "format": "date",
      "description": "Start date of the project phase in ISO 8601 format"
    },
    "endDate": {
      "type": "string",
      "format": "date",
      "description": "End date of the phase in ISO 8601 format"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the object was last updated."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the object was created."
    },
    "projectId": {
      "description": "The project the phase is associated with.",
      "type": "number"
    },
    "budget": {
      "description": "The budget for the phase. This is returned when the project's budget method is set to 'PHASE' or 'PHASE_AND_ROLE', and is null when it is set to 'ROLE'. Note: for 'PHASE_AND_ROLE' the budget is derived from role estimates and rates held on related records, so it can change without updating the phase's `updatedAt` and is therefore not picked up by the `modifiedAfter` filter.",
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "color",
    "startDate",
    "endDate",
    "updatedAt",
    "createdAt",
    "projectId",
    "budget"
  ]
}