create_phase
Add a new phase or milestone to a Zoho Projects project by specifying project ID, phase name, dates, and owner to organize project timelines.
Instructions
Create a new phase/milestone
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| name | Yes | Phase name | |
| start_date | No | Start date (YYYY-MM-DD) | |
| end_date | No | End date (YYYY-MM-DD) | |
| owner_zpuid | No | Owner user ZPUID |
Implementation Reference
- src/index.ts:850-865 (handler)The handler function for the 'create_phase' tool. It extracts project_id and phaseData from input parameters, sends a POST request to the Zoho Projects API to create a new phase/milestone, and returns a formatted success response with the created phase details.private async createPhase(params: any) { const { project_id, ...phaseData } = params; const data = await this.makeRequest( `/portal/${this.config.portalId}/projects/${project_id}/phases`, "POST", phaseData ); return { content: [ { type: "text", text: `Phase created successfully:\n${JSON.stringify(data, null, 2)}`, }, ], }; }
- src/index.ts:469-486 (registration)The registration of the 'create_phase' tool in the list_tools request handler, including its name, description, and input schema definition.{ name: "create_phase", description: "Create a new phase/milestone", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, name: { type: "string", description: "Phase name" }, start_date: { type: "string", description: "Start date (YYYY-MM-DD)", }, end_date: { type: "string", description: "End date (YYYY-MM-DD)" }, owner_zpuid: { type: "string", description: "Owner user ZPUID" }, }, required: ["project_id", "name"], }, },
- src/index.ts:472-485 (schema)Input schema definition for the 'create_phase' tool, specifying required project_id and name, with optional dates and owner.inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, name: { type: "string", description: "Phase name" }, start_date: { type: "string", description: "Start date (YYYY-MM-DD)", }, end_date: { type: "string", description: "End date (YYYY-MM-DD)" }, owner_zpuid: { type: "string", description: "Owner user ZPUID" }, }, required: ["project_id", "name"], },