---
title: "Create or update a project (L2 intent layer). Omit `id` to create, pass it to update. There is no delete tool — use status: 'archived' to retire a project."
method: POST
path: "/api/mcp/tools/project_write"
tags: ["misc"]
---

# Create or update a project (L2 intent layer). Omit \`id\` to create, pass it to update. There is no delete tool — use status: 'archived' to retire a project.

`POST /api/mcp/tools/project_write`

## Request

- Base URL: `https://api.ainote.dev`
- URL: `https://api.ainote.dev/api/mcp/tools/project_write`
- Auth: API key in header `Authorization`

Create or update a project (L2 intent layer). Omit `id` to create, pass it to update. There is no delete tool — use status: 'archived' to retire a project.

## Request body

- object
  - `id` string: Project UUID to update. Omit to create a new project.
  - `name` string: Project name (required to create).
  - `intent` string: Why this project exists, in one paragraph. Pass 'null' to clear.
  - `success_criteria` string: What observable outcome counts as success. Pass 'null' to clear.
  - `status` 'active' | 'paused' | 'archived': active | paused | archived.

## Response `200`

Tool executed successfully

- ToolSuccessResponse: Successful tool invocation. `content` mirrors the MCP `tools/call` result shape: an array of content blocks (text and optionally a structured resource payload).
  - `content` object[]
    - `type` 'text' | 'resource'
    - `text` string

## Other responses

- `400`: Invalid arguments or business-rule violation
- `401`: Missing or invalid McpKey

---

[API](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror.md) · [All operations](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/llms.txt) · [OpenAPI document](https://skmtc.dev/ainote/apis/ainote-mcp-openapi-mirror/revisions/f6c91d85e027?raw)
