---
title: "Update Project Doc"
method: PATCH
path: "/api/app-auto-gtm/projects/{project_id}/project-docs/{doc_id}"
tags: ["AppAutoGtm"]
---

# Update Project Doc

`PATCH /api/app-auto-gtm/projects/{project_id}/project-docs/{doc_id}`

Edit a doc's type/title/content.

Editing an AI-added doc flips ``source`` to ``'user'`` permanently — the
human has curated it, so the future extraction cron (T-1120) never
overwrites it.

## Path parameters

- `project_id` integer, required
- `doc_id` string, required

## Cookies

- `ex_access` string, nullable
- `ex_org` string, nullable

## Request body

- ProjectDocUpdateRequest
  - `doc_type` string, nullable
  - `title` string, nullable
  - `content` string, nullable

## Response `200`

Successful Response

- ProjectDocItem — One project doc as returned to the Project docs UI.
  - `id` string, required
  - `doc_type` string, required
  - `title` string, required
  - `content` string, required
  - `source` 'user' | 'ai', required
  - `updated_at` string, date-time, required
  - `extracted_at` string, date-time, nullable
  - `extracted_from_replies` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/explee/apis/explee-api.md) · [All operations](https://skmtc.dev/explee/apis/explee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/explee/explee-api/revisions/f169bc6e9447/schema)
