---
updatedAt: 2026-04-27T23:21:35.000Z
agentTools:
  projectIndex: https://developer.runn.io/llms.txt
---

# Create a phase for a project

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Runn API",
    "version": "1.0.0",
    "description": "<p>See <a target=\"_blank\" href=\"https://help.runn.io/en/articles/8579592-api-v1-beta\" title=\"Runn API full documentation\">the full documentation and guide</a> to using the Runn API.</p><p>The domain for your API endpoint can be found in <strong>Accounts > Settings > API</strong> in your Runn application</p>"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ProjectPhase": {
        "title": "Project Phase",
        "description": "Project phases divide your project into smaller sections so you can group similar tasks and assignments together.",
        "type": "object",
        "required": [
          "id",
          "name",
          "color",
          "startDate",
          "endDate",
          "updatedAt",
          "createdAt",
          "projectId",
          "budget"
        ],
        "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"
            ]
          }
        }
      },
      "Unauthorized": {
        "type": "object",
        "required": [
          "error",
          "message",
          "statusCode"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Unauthorized"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              401
            ]
          }
        }
      }
    }
  },
  "paths": {
    "/projects/{projectId}/phases/": {
      "post": {
        "operationId": "createProjectPhase",
        "summary": "Create a phase for a project",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "startDate",
                  "endDate",
                  "color"
                ],
                "properties": {
                  "name": {
                    "title": "Name",
                    "description": "The name of the project phase. Must be between 1 and 500 characters long.",
                    "minLength": 1,
                    "maxLength": 500,
                    "examples": [
                      "Initial Planning",
                      "Execution",
                      "Monitoring"
                    ],
                    "type": "string"
                  },
                  "startDate": {
                    "title": "Start Date",
                    "description": "The start date of the project phase in ISO8061 format: YYYY-MM-DD",
                    "format": "date",
                    "type": "string"
                  },
                  "endDate": {
                    "title": "End Date",
                    "description": "The end date of the project phase in ISO8061 format: YYYY-MM-DD",
                    "format": "date",
                    "type": "string"
                  },
                  "color": {
                    "type": "string",
                    "enum": [
                      "#67D0D5",
                      "#FDCD4F",
                      "#F191CC",
                      "#B19DE6",
                      "#9CE277",
                      "#CD97DA",
                      "#84DBA0",
                      "#FFB077",
                      "#9CC5BF",
                      "#E8C681",
                      "#6899F1",
                      "#DDAE9F"
                    ],
                    "title": "Color",
                    "description": "Hex color of the phase. Only a subset of colors is allowed.",
                    "default": "#67D0D5"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "integer"
            },
            "in": "path",
            "name": "projectId",
            "required": true
          },
          {
            "schema": {
              "default": "1.0.0",
              "enum": [
                "1.0.0"
              ]
            },
            "in": "header",
            "name": "accept-version",
            "required": true
          }
        ],
        "responses": {
          "201": {
            "description": "Project phases divide your project into smaller sections so you can group similar tasks and assignments together.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPhase"
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.runn.io",
      "description": "EU Server"
    },
    {
      "url": "https://api.us.runn.io",
      "description": "US Server"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  }
}
```