update-project
Modify a project's name using a single-line JSON input. Requires an n8n Enterprise license with project management features enabled.
Instructions
Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientId | Yes | ||
| name | Yes | ||
| projectId | Yes |
Implementation Reference
- src/index.ts:1227-1257 (handler)Handler function that executes the 'update-project' tool logic. It retrieves the N8nClient instance, calls updateProject method on it, and returns success or error response.case "update-project": { const { clientId, projectId, name } = args as { clientId: string; projectId: string; name: string }; const client = clients.get(clientId); if (!client) { return { content: [{ type: "text", text: "Client not initialized. Please run init-n8n first.", }], isError: true }; } try { await client.updateProject(projectId, name); return { content: [{ type: "text", text: `Successfully updated project ${projectId} with new name: ${name}`, }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : "Unknown error occurred", }], isError: true }; } }
- src/index.ts:542-554 (registration)Registration of the 'update-project' tool in the list of tools returned by list-tools handler, including its name, description, and input schema.{ name: "update-project", description: "Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.", inputSchema: { type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] } },
- src/index.ts:545-554 (schema)Input schema definition for the 'update-project' tool specifying parameters: clientId, projectId, name.inputSchema: { type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] } },
- src/index.ts:222-227 (helper)N8nClient method that performs the actual API call to update a project name via PUT /projects/{projectId}.async updateProject(projectId: string, name: string): Promise<void> { return this.makeRequest<void>(`/projects/${projectId}`, { method: 'PUT', body: JSON.stringify({ name }), }); }