create_phase
Create a new project phase or milestone in Zoho Projects by specifying project ID, phase name, dates, and owner to organize project timelines and track progress.
Instructions
Create a new phase/milestone
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date (YYYY-MM-DD) | |
| name | Yes | Phase name | |
| owner_zpuid | No | Owner user ZPUID | |
| project_id | Yes | Project ID | |
| start_date | No | Start date (YYYY-MM-DD) |
Implementation Reference
- src/http-server.ts:853-868 (handler)Handler function that executes the create_phase tool by destructuring params, calling makeRequest with POST to Zoho API endpoint for phases, and returning formatted success response.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:850-865 (handler)Identical handler function for the create_phase tool in the stdio server implementation.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/http-server.ts:473-489 (registration)Tool registration in listTools response, including name, description, and input schema for create_phase.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:470-486 (registration)Identical tool registration in listTools for the stdio server, including schema.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"], }, },