---
title: "Revise a content draft"
method: POST
path: "/api/v1/content/{id}/revision"
tags: ["Content"]
---

# Revise a content draft

`POST /api/v1/content/{id}/revision`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/content/{id}/revision`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Submit an edited revision (`content`) or relaunch the generation agent with reviewer `feedback` (Pro plan). Both keep the draft in the review queue and reset a prior rejection.

## Path parameters

- `id` string, required

## Request body

- union
  - object: Submit an edited revision (human edit).
    - `content` string, required: Full replacement markdown for the draft body.
    - `title` string
    - `changeNote` string
    - `promptId` string: When provided, the revision is rejected if the draft belongs to a different prompt.
    - `expectedUpdatedAt` string, date-time: The draft's updatedAt from a prior read; the revision is rejected if the draft changed since.
  - object: Relaunch the generation agent with reviewer feedback.
    - `feedback` string, required: Reviewer feedback for an agent re-run of the draft.

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` union, required
    - object
      - `mode` 'content', required
      - `draftId` string, required
      - `promptId` string, nullable, required
      - `title` string, required
      - `versionNumber` integer, required
      - `updatedAt` string, date-time, required
    - object
      - `mode` 'agent', required
      - `draftId` string, required
      - `runId` string, required
      - `workflowId` string, required
      - `workflowRunId` string, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
